about summary refs log tree commit diff stats
path: root/src/xmpp
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2013-06-23 16:35:13 +0100
committerJames Booth <boothj5@gmail.com>2013-06-23 16:35:13 +0100
commitdace47e5d334a9fd7be8a73d83b8108988f78e49 (patch)
tree8c2f73dc75c59ef2c0078a29a6bbe4b77bec38fd /src/xmpp
parent265fff8f40ad521d09bf56e8f2e8fad89ef63865 (diff)
downloadprofani-tty-dace47e5d334a9fd7be8a73d83b8108988f78e49.tar.gz
Show message when removing contact from group when not in group
Diffstat (limited to 'src/xmpp')
-rw-r--r--src/xmpp/roster.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/xmpp/roster.c b/src/xmpp/roster.c
index f29ac09b..262ad0b1 100644
--- a/src/xmpp/roster.c
+++ b/src/xmpp/roster.c
@@ -326,6 +326,11 @@ roster_remove_from_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_not_in_group(p_contact_name(contact), group);
+            } else {
+                prof_handle_not_in_group(p_contact_barejid(contact), group);
+            }
             return;
         }