diff libpurple/protocols/jabber/disco.c @ 29929:3e5bb4e2334c

Added PurpleConnection flags to determine support for moods and mood messages. Mood messages is yet to be implemented in the UI (and replacing the current account-specific mood setting for XMPP).
author Marcus Lundblad <ml@update.uu.se>
date Thu, 04 Mar 2010 22:14:03 +0000
parents 4f3a9ddfa34e
children 7c871249318b ae615b3d3e47
line wrap: on
line diff
--- a/libpurple/protocols/jabber/disco.c	Thu Mar 04 21:25:50 2010 +0000
+++ b/libpurple/protocols/jabber/disco.c	Thu Mar 04 22:14:03 2010 +0000
@@ -517,8 +517,12 @@
 		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"))
+		if(category && type && !strcmp(category, "pubsub") && !strcmp(type,"pep")) {
+			PurpleConnection *gc = js->gc;
 			js->pep = TRUE;
+			gc->flags |= PURPLE_CONNECTION_SUPPORT_MOODS |
+				PURPLE_CONNECTION_SUPPORT_MOOD_MESSAGES;
+		}
 		if (!category || strcmp(category, "server"))
 			continue;
 		if (!type || strcmp(type, "im"))