diff libpurple/protocols/jabber/message.c @ 24706:d0af449f13dc

propagate from branch 'im.pidgin.pidgin' (head 7399f80ea98924dbddd57be1e652ecbae89d3a8e) to branch 'im.pidgin.cpw.malu.xmpp.attention' (head 07abb875ac06d9094e47cfd2c1adb7f3e93de208)
author Marcus Lundblad <ml@update.uu.se>
date Mon, 24 Nov 2008 22:13:04 +0000
parents bdd00a7113d7 1b61f62e5240
children b4a2ce33b3d5
line wrap: on
line diff
--- a/libpurple/protocols/jabber/message.c	Tue Nov 18 22:34:08 2008 +0000
+++ b/libpurple/protocols/jabber/message.c	Mon Nov 24 22:13:04 2008 +0000
@@ -913,19 +913,15 @@
 		return FALSE;
 	}
 
-	jb = jabber_buddy_find(js, who, FALSE);
-	if (!jb) {
-		purple_debug_error("jabber",
-			"jabber_conv_support_custom smileys: could not find buddy\n");
-		return FALSE;
-	}
-	
-	
-
 	switch (purple_conversation_get_type(conv)) {
 		/* for the time being, we will not support custom smileys in MUCs */
 		case PURPLE_CONV_TYPE_IM:
-			return jabber_buddy_has_capability(jb, XEP_0231_NAMESPACE);
+			jb = jabber_buddy_find(js, who, FALSE);
+			if (jb) {
+				return jabber_buddy_has_capability(jb, XEP_0231_NAMESPACE);
+			} else {
+				return NULL;
+			}
 			break;
 		default:
 			return FALSE;