diff libpurple/protocols/jabber/disco.c @ 17561:a75079eae085

added preliminary frame for pep-support
author Andreas Monitzer <pidgin@monitzer.com>
date Wed, 06 Jun 2007 00:01:15 +0000
parents d42de194a364
children 6ab1089e2101
line wrap: on
line diff
--- a/libpurple/protocols/jabber/disco.c	Tue Jun 05 16:31:20 2007 +0000
+++ b/libpurple/protocols/jabber/disco.c	Wed Jun 06 00:01:15 2007 +0000
@@ -30,6 +30,7 @@
 #include "jabber.h"
 #include "presence.h"
 #include "roster.h"
+#include "pep.h"
 
 struct _jabber_disco_info_cb_data {
 	gpointer data;
@@ -261,9 +262,13 @@
 	     child = xmlnode_get_next_twin(child)) {
 		const char *category, *type, *name;
 		category = xmlnode_get_attrib(child, "category");
+		type = xmlnode_get_attrib(child, "type");
+        if(category && type && !strcmp(category, "pubsub") && !strcmp(type,"pep")) {
+            /* server supports pep, initialize it */
+            jabber_pep_init(js);
+        }
 		if (!category || strcmp(category, "server"))
 			continue;
-		type = xmlnode_get_attrib(child, "type");
 		if (!type || strcmp(type, "im"))
 			continue;