1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-11-15 05:53:02 +01:00

update group api call

This commit is contained in:
Jfreegman 2015-05-05 22:32:42 -04:00
parent 2acd99b04c
commit 9385f1145f
No known key found for this signature in database
GPG Key ID: 3627F3144076AE63

View File

@ -341,7 +341,7 @@ void cmd_groupchat(WINDOW *window, ToxWindow *self, Tox *m, int argc, char (*arg
snprintf(name, sizeof(name), "%s", argv[1]); snprintf(name, sizeof(name), "%s", argv[1]);
} }
int groupnum = tox_group_new(m, (uint8_t *) name, len); int groupnum = tox_group_new(m, TOX_GP_PUBLIC, (uint8_t *) name, len);
if (groupnum == -1) { if (groupnum == -1) {
line_info_add(self, NULL, NULL, NULL, SYS_MSG, 0, 0, "Group chat instance failed to initialize."); line_info_add(self, NULL, NULL, NULL, SYS_MSG, 0, 0, "Group chat instance failed to initialize.");