libpurple/protocols/jabber/iq.c

branch
cpw.malu.xmpp.ibb_ft
changeset 26003
721568370a5d
parent 24520
726138a1c69b
parent 25984
a664226316d2
child 26036
ffc583ea14cc
equal deleted inserted replaced
24528:f5b06eefd07f 26003:721568370a5d
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