--- 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: