Prevent joining groupchat more than once.

This commit is contained in:
irungentoo 2014-12-01 19:39:10 -05:00
parent 8e2b8d468a
commit a6e1a74779
No known key found for this signature in database
GPG Key ID: 10349DC9BED89E98

View File

@ -934,6 +934,9 @@ int join_groupchat(Group_Chats *g_c, int32_t friendnumber, uint8_t expected_type
if (friendcon_id == -1)
return -1;
if (get_group_num(g_c, data + sizeof(uint16_t)) != -1)
return -1;
int groupnumber = create_group_chat(g_c);
if (groupnumber == -1)