Mercurial > ~mikael > mcabber > hg
comparison mcabber/src/commands.c @ 835:6a732d2ad4b4
Add "/authorization request_unsubscribe"
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Thu, 04 May 2006 17:52:55 +0200 |
parents | dd865cc57aa2 |
children | 7c74eef1d0e0 |
comparison
equal
deleted
inserted
replaced
834:6f913f4fbb2a | 835:6a732d2ad4b4 |
---|---|
188 | 188 |
189 // Authorization category | 189 // Authorization category |
190 compl_add_category_word(COMPL_AUTH, "allow"); | 190 compl_add_category_word(COMPL_AUTH, "allow"); |
191 compl_add_category_word(COMPL_AUTH, "cancel"); | 191 compl_add_category_word(COMPL_AUTH, "cancel"); |
192 compl_add_category_word(COMPL_AUTH, "request"); | 192 compl_add_category_word(COMPL_AUTH, "request"); |
193 compl_add_category_word(COMPL_AUTH, "request_unsubscribe"); | |
193 | 194 |
194 // Request (query) category | 195 // Request (query) category |
195 compl_add_category_word(COMPL_REQUEST, "time"); | 196 compl_add_category_word(COMPL_REQUEST, "time"); |
196 compl_add_category_word(COMPL_REQUEST, "version"); | 197 compl_add_category_word(COMPL_REQUEST, "version"); |
197 | 198 |
1999 jid_utf8); | 2000 jid_utf8); |
2000 } else if (!strcasecmp(subcmd, "request")) { | 2001 } else if (!strcasecmp(subcmd, "request")) { |
2001 jb_subscr_request_auth(jid_utf8); | 2002 jb_subscr_request_auth(jid_utf8); |
2002 scr_LogPrint(LPRINT_LOGNORM, | 2003 scr_LogPrint(LPRINT_LOGNORM, |
2003 "Sent presence notification request to <%s>...", jid_utf8); | 2004 "Sent presence notification request to <%s>...", jid_utf8); |
2005 } else if (!strcasecmp(subcmd, "request_unsubscribe")) { | |
2006 jb_subscr_request_cancel(jid_utf8); | |
2007 scr_LogPrint(LPRINT_LOGNORM, | |
2008 "Sent presence notification ubsubscription request to <%s>...", | |
2009 jid_utf8); | |
2004 } else { | 2010 } else { |
2005 scr_LogPrint(LPRINT_NORMAL, "Unrecognized parameter!"); | 2011 scr_LogPrint(LPRINT_NORMAL, "Unrecognized parameter!"); |
2006 } | 2012 } |
2007 | 2013 |
2008 // Only free jid_utf8 if it has been allocated, i.e. if != arg. | 2014 // Only free jid_utf8 if it has been allocated, i.e. if != arg. |