diff options
author | Marcus Lundblad <malu@pidgin.im> | 2009-05-10 20:05:08 +0000 |
---|---|---|
committer | Marcus Lundblad <malu@pidgin.im> | 2009-05-10 20:05:08 +0000 |
commit | 6f4f320b73b2df796552425a0ac0dd3e73e581a9 (patch) | |
tree | c732d3930bfa5ba32743e1c87a5f783d7829488c | |
parent | 28088a089aed735565e28bad62c909a2e15eef20 (diff) | |
download | pidgin-6f4f320b73b2df796552425a0ac0dd3e73e581a9.tar.gz |
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
-rw-r--r-- | libpurple/protocols/jabber/buddy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libpurple/protocols/jabber/buddy.c b/libpurple/protocols/jabber/buddy.c index 183cf4e39b..2e0c3f0ecc 100644 --- a/libpurple/protocols/jabber/buddy.c +++ b/libpurple/protocols/jabber/buddy.c @@ -1741,7 +1741,7 @@ static void jabber_buddy_get_info_for_jid(JabberStream *js, const char *jid) 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); |