pidgin: 4ac2995f: Don't query for "last offline time" when...

malu at pidgin.im malu at pidgin.im
Sun May 10 16:15:39 EDT 2009


-----------------------------------------------------------------
Revision: 4ac2995f96b726c50085a8f668cd7bac328e6c79
Ancestor: b64b40b3762950d0b8b4bff4f4bb8bddeefc24ac
Author: malu at pidgin.im
Date: 2009-05-10T20:05:08
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/4ac2995f96b726c50085a8f668cd7bac328e6c79

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

ChangeLog: 

Don't query for "last offline time" when the JID is a full JID (containing
a "/"), in this case it's a MUC JID, and are handled separetly.
Prevents printing two status lines for unknown MUC JIDs

-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/buddy.c	16ed96f90a41069d4d6a97d9d87a957ea05e7190
+++ libpurple/protocols/jabber/buddy.c	15ad67da0121fb68446daaee594980c653276b7c
@@ -1741,7 +1741,7 @@ static void jabber_buddy_get_info_for_ji
 		g_free(full_jid);
 	}
 
-	if (!jb->resources) {
+	if (!jb->resources && strchr(jid, '/') == NULL) {
 		/* user is offline, send a jabber:iq:last to find out last time online */
 		iq = jabber_iq_new_query(js, JABBER_IQ_GET, "jabber:iq:last");
 		xmlnode_set_attrib(iq->node, "to", jid);


More information about the Commits mailing list