changeset 26687:217a3ad87fc4

Discovered why that default assumption of PURPLE_DISCO_BROWSE was in there... ejabberd's MUC component doesn't advertise disco#items as a feature on the MUC.
author Paul Aurich <paul@darkrain42.org>
date Tue, 14 Apr 2009 08:29:25 +0000
parents ff33b65b2448
children 4c974d40cc63
files libpurple/protocols/jabber/disco.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/jabber/disco.c	Tue Apr 14 06:54:44 2009 +0000
+++ b/libpurple/protocols/jabber/disco.c	Tue Apr 14 08:29:25 2009 +0000
@@ -813,8 +813,10 @@
 		if (g_str_equal(var, "http://jabber.org/protocol/disco#items"))
 			flags |= PURPLE_DISCO_BROWSE;
 
-		if (g_str_equal(var, "http://jabber.org/protocol/muc"))
+		if (g_str_equal(var, "http://jabber.org/protocol/muc")) {
+			flags |= PURPLE_DISCO_BROWSE;
 			service_type = PURPLE_DISCO_SERVICE_TYPE_CHAT;
+		}
 	}
 
 	if ((anode = xmlnode_get_attrib(query, "node")))