Mercurial > pidgin
comparison libpurple/protocols/jabber/disco.c @ 26605: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 | 9fb8d8d9783a |
comparison
equal
deleted
inserted
replaced
26604:ff33b65b2448 | 26605:217a3ad87fc4 |
---|---|
811 flags |= PURPLE_DISCO_REGISTER; | 811 flags |= PURPLE_DISCO_REGISTER; |
812 | 812 |
813 if (g_str_equal(var, "http://jabber.org/protocol/disco#items")) | 813 if (g_str_equal(var, "http://jabber.org/protocol/disco#items")) |
814 flags |= PURPLE_DISCO_BROWSE; | 814 flags |= PURPLE_DISCO_BROWSE; |
815 | 815 |
816 if (g_str_equal(var, "http://jabber.org/protocol/muc")) | 816 if (g_str_equal(var, "http://jabber.org/protocol/muc")) { |
817 flags |= PURPLE_DISCO_BROWSE; | |
817 service_type = PURPLE_DISCO_SERVICE_TYPE_CHAT; | 818 service_type = PURPLE_DISCO_SERVICE_TYPE_CHAT; |
819 } | |
818 } | 820 } |
819 | 821 |
820 if ((anode = xmlnode_get_attrib(query, "node"))) | 822 if ((anode = xmlnode_get_attrib(query, "node"))) |
821 aname = g_strdup_printf("%s%s", from, anode); | 823 aname = g_strdup_printf("%s%s", from, anode); |
822 else | 824 else |