Fixed possible issue.

This commit is contained in:
irungentoo 2013-12-09 09:30:35 -05:00
parent d5092e7cf8
commit 563664d1a5

View File

@ -861,12 +861,12 @@ int add_groupchat(Messenger *m)
if (temp == NULL)
return -1;
m->chats = temp;
temp[m->numchats] = new_groupchat(m->net);
if (temp[m->numchats] == NULL)
return -1;
m->chats = temp;
callback_groupmessage(temp[m->numchats], &group_message_function, m);
callback_namelistchange(temp[m->numchats], &group_namelistchange_function, m);
/* TODO: remove this (group nicks should not be tied to the global one) */