Fixed @ appearing in messages.

This commit is contained in:
irungentoo 2013-07-13 22:28:25 -04:00
parent 383630b3d4
commit 96b8cb1c43
2 changed files with 5 additions and 3 deletions

View File

@ -282,7 +282,7 @@ static void doFriends()
{ {
if(temp[0] == 64) if(temp[0] == 64)
{ {
(*friend_message)(i, temp, len); (*friend_message)(i, temp + 1, len - 1);
} }
} }
else else

View File

@ -2,8 +2,10 @@
* *
* A simple DHT boostrap server for tox. * A simple DHT boostrap server for tox.
* *
* Build command: gcc -O2 -Wall -D VANILLA_NACL -o bootstrap_server ../core/Lossless_UDP.c ../core/network.c ../core/net_crypto.c ../core/Messenger.c ../core/DHT.c ../nacl/build/${HOSTNAME%.*}/lib/amd64/{cpucycles.o,libnacl.a,randombytes.o} DHT_bootstrap.c * Build commands (use one or the other):
* gcc -O2 -Wall -D VANILLA_NACL -o bootstrap_server ../core/Lossless_UDP.c ../core/network.c ../core/net_crypto.c ../core/Messenger.c ../core/DHT.c ../nacl/build/${HOSTNAME%.*}/lib/amd64/{cpucycles.o,libnacl.a,randombytes.o} DHT_bootstrap.c
* *
* gcc -O2 -Wall -o bootstrap_server ../core/Lossless_UDP.c ../core/network.c ../core/net_crypto.c ../core/Messenger.c ../core/DHT.c -lsodium DHT_bootstrap.c
*/ */
#include "../core/DHT.h" #include "../core/DHT.h"