1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-12-07 07:46:34 +01:00

groupchat keys can sometimes start with a 0

This commit is contained in:
Jfreegman
2014-07-02 13:46:57 -04:00
parent 95d09e4b75
commit 0f37e50419
6 changed files with 11 additions and 9 deletions

View File

@@ -132,9 +132,9 @@ void cmd_join_group(WINDOW *window, ToxWindow *self, Tox *m, int argc, char (*ar
return;
}
uint8_t *groupkey = friends[self->num].pending_groupchat;
uint8_t *groupkey = friends[self->num].groupchat_key;
if (groupkey[0] == '\0') {
if (!friends[self->num].groupchat_pending) {
errmsg = "No pending group chat invite.";
line_info_add(self, NULL, NULL, NULL, errmsg, SYS_MSG, 0, 0);
return;