changeset 25435: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 2035b8164aca
children cddd7961901f
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	Sun Feb 08 00:23:43 2009 +0000
+++ b/libpurple/protocols/jabber/buddy.c	Sun Feb 08 05:02:30 2009 +0000
@@ -1786,7 +1786,7 @@
 	if (!jid)
 		return;
 
-	if (jabber_chat_find(js, jid->node, jid->domain)) {
+	if (jid->node && jabber_chat_find(js, jid->node, jid->domain)) {
 		/* For a conversation, include the resource (indicates the user). */
 		jabber_buddy_get_info_for_jid(js, who);
 	} else {