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

small API fix

This commit is contained in:
Jfreegman 2015-06-01 03:12:12 -04:00
parent 7e7087e94e
commit 52a3367b5e
No known key found for this signature in database
GPG Key ID: 3627F3144076AE63

View File

@ -149,12 +149,14 @@ void cmd_mod(WINDOW *window, ToxWindow *self, Tox *m, int argc, char (*argv)[MAX
void cmd_prune(WINDOW *window, ToxWindow *self, Tox *m, int argc, char (*argv)[MAX_STR_SIZE])
{
if (tox_group_prune_moderator_list(m, self->num) == -1) {
int num_pruned = tox_group_prune_moderator_list(m, self->num);
if (num_pruned == -1) {
line_info_add(self, NULL, NULL, NULL, SYS_MSG, 0, 0, "Failed to prune moderator list.");
return;
}
line_info_add(self, NULL, NULL, NULL, SYS_MSG, 0, 0, "Moderator list has been successfully pruned.");
line_info_add(self, NULL, NULL, NULL, SYS_MSG, 0, 0, "%d offline moderators have been pruned from the list.", num_pruned);
}
void cmd_unmod(WINDOW *window, ToxWindow *self, Tox *m, int argc, char (*argv)[MAX_STR_SIZE])