diff options
author | Jman012 <jman012guy@gmail.com> | 2013-09-21 23:50:14 -0700 |
---|---|---|
committer | Jman012 <jman012guy@gmail.com> | 2013-09-21 23:50:14 -0700 |
commit | bb0cd7da0c86356ac3413045cd3683281b2bded4 (patch) | |
tree | ee1bdc604e0a21e2c796049479ff1a0d706354d6 | |
parent | 1cc47101fec6a13a3eb5894cdb029420d3ae0ec4 (diff) |
Fixed a bug or two.
Added breaks on the new packet handlers in doFriends for the switch statement, and added a default.
-rw-r--r-- | toxcore/Messenger.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/toxcore/Messenger.c b/toxcore/Messenger.c index d595c67d..199d8a92 100644 --- a/toxcore/Messenger.c +++ b/toxcore/Messenger.c | |||
@@ -1182,6 +1182,8 @@ void doFriends(Messenger *m) | |||
1182 | 1182 | ||
1183 | if (m->group_invite) | 1183 | if (m->group_invite) |
1184 | (*m->group_invite)(m, i, data, m->group_invite_userdata); | 1184 | (*m->group_invite)(m, i, data, m->group_invite_userdata); |
1185 | |||
1186 | break; | ||
1185 | } | 1187 | } |
1186 | 1188 | ||
1187 | case PACKET_ID_JOIN_GROUPCHAT: { | 1189 | case PACKET_ID_JOIN_GROUPCHAT: { |
@@ -1197,6 +1199,12 @@ void doFriends(Messenger *m) | |||
1197 | break; | 1199 | break; |
1198 | 1200 | ||
1199 | group_newpeer(m->chats[groupnum], data + crypto_box_PUBLICKEYBYTES); | 1201 | group_newpeer(m->chats[groupnum], data + crypto_box_PUBLICKEYBYTES); |
1202 | |||
1203 | break; | ||
1204 | } | ||
1205 | |||
1206 | default: { | ||
1207 | break; | ||
1200 | } | 1208 | } |
1201 | } | 1209 | } |
1202 | } else { | 1210 | } else { |