diff 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
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 {