| 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); |