# HG changeset patch # User Mikael Berthe # Date 1146757975 -7200 # Node ID 6a732d2ad4b47fb874b97ea7fa60419eb470fc47 # Parent 6f913f4fbb2ac5b29f487fcaffea80c9f1c7a846 Add "/authorization request_unsubscribe" diff -r 6f913f4fbb2a -r 6a732d2ad4b4 mcabber/src/commands.c --- 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!"); }