Fixed a bug or two.

Added breaks on the new packet handlers in doFriends for the switch statement, and added a default.
This commit is contained in:
Jman012 2013-09-21 23:50:14 -07:00
parent 1cc47101fe
commit bb0cd7da0c

View File

@ -1182,6 +1182,8 @@ void doFriends(Messenger *m)
if (m->group_invite) if (m->group_invite)
(*m->group_invite)(m, i, data, m->group_invite_userdata); (*m->group_invite)(m, i, data, m->group_invite_userdata);
break;
} }
case PACKET_ID_JOIN_GROUPCHAT: { case PACKET_ID_JOIN_GROUPCHAT: {
@ -1197,6 +1199,12 @@ void doFriends(Messenger *m)
break; break;
group_newpeer(m->chats[groupnum], data + crypto_box_PUBLICKEYBYTES); group_newpeer(m->chats[groupnum], data + crypto_box_PUBLICKEYBYTES);
break;
}
default: {
break;
} }
} }
} else { } else {