# HG changeset patch # User Mikael Berthe # Date 1257284282 -3600 # Node ID 73fc85ea0b4b5374d3cbd3cfe476204a4b60ba85 # Parent 8c0e173d7d6a5f0616098e785bb673982f3aba3e Do not send disco requests to offline resources diff -r 8c0e173d7d6a -r 73fc85ea0b4b mcabber/src/xmpp.c --- a/mcabber/src/xmpp.c Tue Nov 03 22:16:22 2009 +0100 +++ b/mcabber/src/xmpp.c Tue Nov 03 22:38:02 2009 +0100 @@ -1278,7 +1278,7 @@ time_t timestamp = 0L; LmMessageNode *muc_packet, *caps; - //Check for MUC presence packet + // Check for MUC presence packet muc_packet = lm_message_node_find_xmlns (m->node, "http://jabber.org/protocol/muc#user"); @@ -1359,14 +1359,14 @@ ustmsg); } - //XEP-0115 Entity Capabilities + // XEP-0115 Entity Capabilities caps = lm_message_node_find_xmlns(m->node, NS_CAPS); - if (caps) { + if (caps && ust != offline) { const char *ver = lm_message_node_get_attribute(caps, "ver"); GSList *sl_buddy = NULL; if (rname) sl_buddy = roster_find(r, jidsearch, ROSTER_TYPE_USER); - //only cache the caps if the user is on the roster + // Only cache the caps if the user is on the roster if (sl_buddy && buddy_getonserverflag(sl_buddy->data)) { buddy_resource_setcaps(sl_buddy->data, rname, ver);