comparison mcabber/mcabber/xmpp.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 44e023ad99ed
children 3a1afbfb28dd
comparison
equal deleted inserted replaced
1704:ab502d645378 1705:ac881b5f9248
243 xmlns = NS_TIME; 243 xmlns = NS_TIME;
244 strreqtype = "time"; 244 strreqtype = "time";
245 } else if (reqtype == iqreq_last) { 245 } else if (reqtype == iqreq_last) {
246 xmlns = NS_LAST; 246 xmlns = NS_LAST;
247 strreqtype = "last"; 247 strreqtype = "last";
248 } else if (reqtype == iqreq_ping) {
249 xmlns = NS_PING;
250 strreqtype = "last";
248 } else if (reqtype == iqreq_vcard) { 251 } else if (reqtype == iqreq_vcard) {
249 xmlns = NS_VCARD; 252 xmlns = NS_VCARD;
250 strreqtype = "vCard"; 253 strreqtype = "vCard";
251 // Special case
252 } else 254 } else
253 return; 255 return;
254 256
255 if (strchr(fjid, JID_RESOURCE_SEPARATOR)) { 257 if (strchr(fjid, JID_RESOURCE_SEPARATOR)) {
256 // This is a full JID 258 // This is a full JID