changeset 17440:d42de194a364

skip some unneeded queries that we don't particularly need or want
author Nathan Walp <nwalp@pidgin.im>
date Mon, 28 May 2007 21:38:36 +0000
parents 3919c68eb5b7
children cc1b4d2e5a9b
files libpurple/protocols/jabber/disco.c
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/jabber/disco.c	Mon May 28 21:37:06 2007 +0000
+++ b/libpurple/protocols/jabber/disco.c	Mon May 28 21:38:36 2007 +0000
@@ -324,11 +324,16 @@
 	for(child = xmlnode_get_child(query, "item"); child;
 			child = xmlnode_get_next_twin(child)) {
 		JabberIq *iq;
-		const char *jid;
+		const char *jid, *node;
 
 		if(!(jid = xmlnode_get_attrib(child, "jid")))
 			continue;
 
+		/* we don't actually care about the specific nodes,
+		 * so we won't query them */
+		if((node = xmlnode_get_attrib(child, "node")))
+			continue;
+
 		iq = jabber_iq_new_query(js, JABBER_IQ_GET, "http://jabber.org/protocol/disco#info");
 		xmlnode_set_attrib(iq->node, "to", jid);
 		jabber_iq_send(iq);