comparison libpurple/protocols/jabber/iq.c @ 23445:4ac5db6e39f3

Custom smileys for XMPP according to XEP 0231. Refs #5627. committer: Sadrul Habib Chowdhury <imadil@gmail.com>
author Marcus Lundblad <ml@update.uu.se>
date Sun, 01 Jun 2008 20:55:54 +0000
parents c6ba0a7028f4
children 305fac6af8f9
comparison
equal deleted inserted replaced
23262:5793bcea224c 23445:4ac5db6e39f3
31 #include "oob.h" 31 #include "oob.h"
32 #include "roster.h" 32 #include "roster.h"
33 #include "si.h" 33 #include "si.h"
34 #include "ping.h" 34 #include "ping.h"
35 #include "adhoccommands.h" 35 #include "adhoccommands.h"
36 #include "data.h"
36 37
37 #ifdef _WIN32 38 #ifdef _WIN32
38 #include "utsname.h" 39 #include "utsname.h"
39 #endif 40 #endif
40 41
353 if(xmlnode_get_child_with_namespace(packet, "ping", "urn:xmpp:ping")) { 354 if(xmlnode_get_child_with_namespace(packet, "ping", "urn:xmpp:ping")) {
354 jabber_ping_parse(js, packet); 355 jabber_ping_parse(js, packet);
355 return; 356 return;
356 } 357 }
357 358
359 if (xmlnode_get_child_with_namespace(packet, "data",
360 "urn:xmpp:tmp:data-element")) {
361 jabber_data_parse(js, packet);
362 return;
363 }
364
358 /* If we get here, send the default error reply mandated by XMPP-CORE */ 365 /* If we get here, send the default error reply mandated by XMPP-CORE */
359 if(type && (!strcmp(type, "set") || !strcmp(type, "get"))) { 366 if(type && (!strcmp(type, "set") || !strcmp(type, "get"))) {
360 JabberIq *iq = jabber_iq_new(js, JABBER_IQ_ERROR); 367 JabberIq *iq = jabber_iq_new(js, JABBER_IQ_ERROR);
361 368
362 xmlnode_free(iq->node); 369 xmlnode_free(iq->node);