equal
deleted
inserted
replaced
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. |