diff options
Diffstat (limited to 'toxcore')
-rw-r--r-- | toxcore/assoc.c | 4 | ||||
-rw-r--r-- | toxcore/group_chats.c | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/toxcore/assoc.c b/toxcore/assoc.c index fa44d0e3..5bafdcdb 100644 --- a/toxcore/assoc.c +++ b/toxcore/assoc.c | |||
@@ -1,4 +1,8 @@ | |||
1 | 1 | ||
2 | #ifdef HAVE_CONFIG_H | ||
3 | #include "config.h" | ||
4 | #endif | ||
5 | |||
2 | #include "DHT.h" | 6 | #include "DHT.h" |
3 | #include "assoc.h" | 7 | #include "assoc.h" |
4 | #include "ping.h" | 8 | #include "ping.h" |
diff --git a/toxcore/group_chats.c b/toxcore/group_chats.c index d1782c71..ec9229c4 100644 --- a/toxcore/group_chats.c +++ b/toxcore/group_chats.c | |||
@@ -447,7 +447,8 @@ static int handle_data(Group_Chat *chat, uint8_t *data, uint32_t len) | |||
447 | int peernum = peer_in_chat(chat, data); | 447 | int peernum = peer_in_chat(chat, data); |
448 | 448 | ||
449 | if (peernum == -1) { /*NOTE: This is just for testing and will be removed later.*/ | 449 | if (peernum == -1) { /*NOTE: This is just for testing and will be removed later.*/ |
450 | peernum = addpeer(chat, data); | 450 | if (data[crypto_box_PUBLICKEYBYTES + sizeof(uint32_t)] != GROUP_CHAT_QUIT) |
451 | peernum = addpeer(chat, data); | ||
451 | } | 452 | } |
452 | 453 | ||
453 | if (peernum == -1) | 454 | if (peernum == -1) |