Mercurial > ~mikael > mcabber > hg
diff mcabber/mcabber/commands.c @ 1705:ac881b5f9248
Add /request ping (XEP-0199), by merging isbear's module
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Mon, 08 Feb 2010 21:23:05 +0100 |
parents | 393c05fba337 |
children | 98d99485d276 |
line wrap: on
line diff
--- a/mcabber/mcabber/commands.c Mon Feb 08 19:36:56 2010 +0100 +++ b/mcabber/mcabber/commands.c Mon Feb 08 21:23:05 2010 +0100 @@ -305,6 +305,7 @@ // Request (query) category compl_add_category_word(COMPL_REQUEST, "last"); + compl_add_category_word(COMPL_REQUEST, "ping"); compl_add_category_word(COMPL_REQUEST, "time"); compl_add_category_word(COMPL_REQUEST, "vcard"); compl_add_category_word(COMPL_REQUEST, "version"); @@ -3242,6 +3243,8 @@ numtype = iqreq_time; else if (!strcasecmp(type, "last")) numtype = iqreq_last; + else if (!strcasecmp(type, "ping")) + numtype = iqreq_ping; else if (!strcasecmp(type, "vcard")) numtype = iqreq_vcard; } @@ -3290,6 +3293,7 @@ case iqreq_time: case iqreq_last: case iqreq_vcard: + case iqreq_ping: xmpp_request(fjid, numtype); break; default: