diff options
author | irungentoo <irungentoo@gmail.com> | 2013-11-24 14:35:47 -0500 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2013-11-24 14:35:47 -0500 |
commit | 0a84c61c39da51a5f141b7b974250a06c96735bb (patch) | |
tree | 15d1b563d5ced49572e11edef3bafa4c77f0e002 | |
parent | 2b94408adc5e8ebdd7115b32c3ad3318a36f294b (diff) |
Fixed bug with group chats.
-rw-r--r-- | toxcore/group_chats.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/toxcore/group_chats.c b/toxcore/group_chats.c index 7e18a334..b551a1fd 100644 --- a/toxcore/group_chats.c +++ b/toxcore/group_chats.c | |||
@@ -437,7 +437,8 @@ static int handle_data(Group_Chat *chat, uint8_t *data, uint32_t len) | |||
437 | int peernum = peer_in_chat(chat, data); | 437 | int peernum = peer_in_chat(chat, data); |
438 | 438 | ||
439 | if (peernum == -1) { /*NOTE: This is just for testing and will be removed later.*/ | 439 | if (peernum == -1) { /*NOTE: This is just for testing and will be removed later.*/ |
440 | peernum = addpeer(chat, data); | 440 | if (data[crypto_box_PUBLICKEYBYTES + sizeof(uint32_t)] != GROUP_CHAT_QUIT) |
441 | peernum = addpeer(chat, data); | ||
441 | } | 442 | } |
442 | 443 | ||
443 | if (peernum == -1) | 444 | if (peernum == -1) |