Mercurial > hg
diff mcabber/src/commands.c @ 1015:579299b1c9b2
Add /request last
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Mon, 13 Nov 2006 21:58:18 +0100 |
parents | 99c5278bf6b8 |
children | 4d3c48844746 |
line wrap: on
line diff
--- a/mcabber/src/commands.c Sun Nov 12 22:25:14 2006 +0100 +++ b/mcabber/src/commands.c Mon Nov 13 21:58:18 2006 +0100 @@ -212,6 +212,7 @@ compl_add_category_word(COMPL_AUTH, "request_unsubscribe"); // Request (query) category + compl_add_category_word(COMPL_REQUEST, "last"); compl_add_category_word(COMPL_REQUEST, "time"); compl_add_category_word(COMPL_REQUEST, "vcard"); compl_add_category_word(COMPL_REQUEST, "version"); @@ -2248,6 +2249,8 @@ numtype = iqreq_version; else if (!strcasecmp(type, "time")) numtype = iqreq_time; + else if (!strcasecmp(type, "last")) + numtype = iqreq_last; else if (!strcasecmp(type, "vcard")) numtype = iqreq_vcard; else if (!strcasecmp(type, "show_list")) { @@ -2260,7 +2263,7 @@ if (!type || !numtype) { scr_LogPrint(LPRINT_NORMAL, - "Please specify a query type (version, time)."); + "Please specify a query type (version, time...)."); free_arg_lst(paramlst); return; } @@ -2293,6 +2296,7 @@ switch (numtype) { case iqreq_version: case iqreq_time: + case iqreq_last: case iqreq_vcard: jb_request(jid, numtype); break;