diff 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
line wrap: on
line diff
--- a/libpurple/protocols/jabber/iq.c	Sun Jun 01 18:08:14 2008 +0000
+++ b/libpurple/protocols/jabber/iq.c	Sun Jun 01 20:55:54 2008 +0000
@@ -33,6 +33,7 @@
 #include "si.h"
 #include "ping.h"
 #include "adhoccommands.h"
+#include "data.h"
 
 #ifdef _WIN32
 #include "utsname.h"
@@ -355,6 +356,12 @@
 		return;
 	}
 
+	if (xmlnode_get_child_with_namespace(packet, "data",
+		    "urn:xmpp:tmp:data-element")) {
+		jabber_data_parse(js, packet);
+		return;
+	}
+
 	/* If we get here, send the default error reply mandated by XMPP-CORE */
 	if(type && (!strcmp(type, "set") || !strcmp(type, "get"))) {
 		JabberIq *iq = jabber_iq_new(js, JABBER_IQ_ERROR);