# HG changeset patch # User Nathan Walp # Date 1180388316 0 # Node ID d42de194a364174b36c07fbbe154b22e438d6ad6 # Parent 3919c68eb5b70d9c91c79344c67b0dc55f9de0de skip some unneeded queries that we don't particularly need or want diff -r 3919c68eb5b7 -r d42de194a364 libpurple/protocols/jabber/disco.c --- 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);