mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-19 11:06:21 +00:00
Removed prof_handle group functions
This commit is contained in:
@@ -1009,8 +1009,13 @@ cmd_group(gchar **args, struct cmd_help_t help)
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
roster_add_to_group(group, pcontact);
|
||||
roster_send_add_to_group(group, pcontact);
|
||||
if (p_contact_in_group(pcontact, group)) {
|
||||
const char *display_name = p_contact_name_or_jid(pcontact);
|
||||
ui_contact_already_in_group(display_name, group);
|
||||
ui_current_page_off();
|
||||
} else {
|
||||
roster_send_add_to_group(group, pcontact);
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
@@ -1036,8 +1041,13 @@ cmd_group(gchar **args, struct cmd_help_t help)
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
roster_remove_from_group(group, pcontact);
|
||||
roster_send_remove_from_group(group, pcontact);
|
||||
if (!p_contact_in_group(pcontact, group)) {
|
||||
const char *display_name = p_contact_name_or_jid(pcontact);
|
||||
ui_contact_not_in_group(display_name, group);
|
||||
ui_current_page_off();
|
||||
} else {
|
||||
roster_send_remove_from_group(group, pcontact);
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user