about summary refs log tree commit diff stats
path: root/src/jabber.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/jabber.c')
-rw-r--r--src/jabber.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/jabber.c b/src/jabber.c
index 3dd4eb77..e03f1e2b 100644
--- a/src/jabber.c
+++ b/src/jabber.c
@@ -802,6 +802,11 @@ _iq_handler(xmpp_conn_t * const conn,
         const char *jid = xmpp_stanza_get_attribute(item, STANZA_ATTR_JID);
         const char *sub = xmpp_stanza_get_attribute(item, STANZA_ATTR_SUBSCRIPTION);
 
+        if (g_strcmp0(sub, "remove") == 0) {
+            contact_list_remove(jid);
+            return TRUE;
+        }
+
         gboolean pending_out = FALSE;
         const char *ask = xmpp_stanza_get_attribute(item, STANZA_ATTR_ASK);
         if ((ask != NULL) && (strcmp(ask, "subscribe") == 0)) {