Mercurial > pidgin.yaz
comparison libpurple/protocols/jabber/buddy.c @ 25069:d7dcdba13b88
A JID can have no node (the part before the @), but a chat must have one,
so don't look for chats if the JID has no node.
Fixes #8375.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Sun, 08 Feb 2009 05:02:30 +0000 |
parents | c814641afcf2 |
children | 4b8c4870b13a 394252b681bc 1d3274111180 7f552614ec8a 751df82b78e7 a2388ce30772 |
comparison
equal
deleted
inserted
replaced
25068:2035b8164aca | 25069:d7dcdba13b88 |
---|---|
1784 JabberID *jid = jabber_id_new(who); | 1784 JabberID *jid = jabber_id_new(who); |
1785 | 1785 |
1786 if (!jid) | 1786 if (!jid) |
1787 return; | 1787 return; |
1788 | 1788 |
1789 if (jabber_chat_find(js, jid->node, jid->domain)) { | 1789 if (jid->node && jabber_chat_find(js, jid->node, jid->domain)) { |
1790 /* For a conversation, include the resource (indicates the user). */ | 1790 /* For a conversation, include the resource (indicates the user). */ |
1791 jabber_buddy_get_info_for_jid(js, who); | 1791 jabber_buddy_get_info_for_jid(js, who); |
1792 } else { | 1792 } else { |
1793 char *bare_jid = jabber_get_bare_jid(who); | 1793 char *bare_jid = jabber_get_bare_jid(who); |
1794 jabber_buddy_get_info_for_jid(js, bare_jid); | 1794 jabber_buddy_get_info_for_jid(js, bare_jid); |