mcabber/src/commands.c
changeset 835 6a732d2ad4b4
parent 831 dd865cc57aa2
child 837 7c74eef1d0e0
--- a/mcabber/src/commands.c	Thu May 04 17:03:19 2006 +0200
+++ b/mcabber/src/commands.c	Thu May 04 17:52:55 2006 +0200
@@ -190,6 +190,7 @@
   compl_add_category_word(COMPL_AUTH, "allow");
   compl_add_category_word(COMPL_AUTH, "cancel");
   compl_add_category_word(COMPL_AUTH, "request");
+  compl_add_category_word(COMPL_AUTH, "request_unsubscribe");
 
   // Request (query) category
   compl_add_category_word(COMPL_REQUEST, "time");
@@ -2001,6 +2002,11 @@
     jb_subscr_request_auth(jid_utf8);
     scr_LogPrint(LPRINT_LOGNORM,
                  "Sent presence notification request to <%s>...", jid_utf8);
+  } else if (!strcasecmp(subcmd, "request_unsubscribe"))  {
+    jb_subscr_request_cancel(jid_utf8);
+    scr_LogPrint(LPRINT_LOGNORM,
+                 "Sent presence notification ubsubscription request to <%s>...",
+                 jid_utf8);
   } else {
     scr_LogPrint(LPRINT_NORMAL, "Unrecognized parameter!");
   }