--- 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!");
}