Show message when contact already in group

This commit is contained in:
James Booth
2013-06-23 16:29:42 +01:00
parent f9b8da1afe
commit 265fff8f40
5 changed files with 21 additions and 0 deletions

View File

@@ -293,6 +293,11 @@ roster_add_to_group(const char * const group, const char * const barejid)
if (contact != NULL) {
if (p_contact_in_group(contact, group)) {
if (p_contact_name(contact) != NULL) {
prof_handle_already_in_group(p_contact_name(contact), group);
} else {
prof_handle_already_in_group(p_contact_barejid(contact), group);
}
return;
}