changeset 26936:1ef01afd08bc

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
author Marcus Lundblad <ml@update.uu.se>
date Sun, 10 May 2009 20:05:08 +0000
parents 04af21d4be27
children 40de88e41162
files libpurple/protocols/jabber/buddy.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/jabber/buddy.c	Fri May 08 03:54:58 2009 +0000
+++ b/libpurple/protocols/jabber/buddy.c	Sun May 10 20:05:08 2009 +0000
@@ -1741,7 +1741,7 @@
 		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);