Mercurial > hg
changeset 835:6a732d2ad4b4
Add "/authorization request_unsubscribe"
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Thu, 04 May 2006 17:52:55 +0200 |
parents | 6f913f4fbb2a |
children | cd011fe9f8a5 |
files | mcabber/src/commands.c |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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!"); }