cpw.darkrain42.xmpp.disco: b07ff087: Discovered why that default assumption o...

paul at darkrain42.org paul at darkrain42.org
Sat Apr 25 16:17:23 EDT 2009


-----------------------------------------------------------------
Revision: b07ff0871447bd1527b479020b15c68e90227ff8
Ancestor: e26f09f4fd01e808a847f8f7047f962a6c0a79e3
Author: paul at darkrain42.org
Date: 2009-04-14T08:29:25
Branch: im.pidgin.cpw.darkrain42.xmpp.disco
URL: http://d.pidgin.im/viewmtn/revision/info/b07ff0871447bd1527b479020b15c68e90227ff8

Modified files:
        libpurple/protocols/jabber/disco.c

ChangeLog: 

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.

-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/disco.c	176750ba6579722241d2573f331e9c7450495b3e
+++ libpurple/protocols/jabber/disco.c	64be02401da0199596bc7e8a0007328988370c12
@@ -813,8 +813,10 @@ jabber_disco_service_info_cb(JabberStrea
 		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")))


More information about the Commits mailing list