libpurple/protocols/jabber/iq.c

branch
cpw.attention_ui
changeset 26047
a7c475364465
parent 25566
e8a7ea4c73f3
parent 26042
4dabdb5fe213
child 26680
406180d6ac3c
equal deleted inserted replaced
25949:afdac7a0f6a4 26047:a7c475364465
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 #include "data.h"
37 #include "ibb.h"
37 38
38 #ifdef _WIN32 39 #ifdef _WIN32
39 #include "utsname.h" 40 #include "utsname.h"
40 #endif 41 #endif
41 42
391 if (xmlnode_get_child_with_namespace(packet, "data", XEP_0231_NAMESPACE)) { 392 if (xmlnode_get_child_with_namespace(packet, "data", XEP_0231_NAMESPACE)) {
392 jabber_data_parse(js, packet); 393 jabber_data_parse(js, packet);
393 return; 394 return;
394 } 395 }
395 396
397 if (xmlnode_get_child_with_namespace(packet, "data", XEP_0047_NAMESPACE)
398 || xmlnode_get_child_with_namespace(packet, "close", XEP_0047_NAMESPACE)
399 || xmlnode_get_child_with_namespace(packet, "open", XEP_0047_NAMESPACE)) {
400 jabber_ibb_parse(js, packet);
401 return;
402 }
403
396 /* If we get here, send the default error reply mandated by XMPP-CORE */ 404 /* If we get here, send the default error reply mandated by XMPP-CORE */
397 if(!strcmp(type, "set") || !strcmp(type, "get")) { 405 if(!strcmp(type, "set") || !strcmp(type, "get")) {
398 JabberIq *iq = jabber_iq_new(js, JABBER_IQ_ERROR); 406 JabberIq *iq = jabber_iq_new(js, JABBER_IQ_ERROR);
399 407
400 xmlnode_free(iq->node); 408 xmlnode_free(iq->node);

mercurial