changeset 21801:3265e4619117

We need to use the actual username for attentions, instead of alias. This should fix the 'new im for buzz' bug on yahoo.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Sun, 09 Dec 2007 10:08:40 +0000
parents 73aab5bdd830
children d01d9107f263 0a5dcdbdc89a
files libpurple/protocols/yahoo/yahoo.c
diffstat 1 files changed, 1 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/yahoo/yahoo.c	Sun Dec 09 00:56:29 2007 +0000
+++ b/libpurple/protocols/yahoo/yahoo.c	Sun Dec 09 10:08:40 2007 +0000
@@ -899,7 +899,6 @@
 		purple_util_chrreplace(m, '\r', '\n');
 
 		if (!strcmp(m, "<ding>")) {
-			PurpleBuddy *buddy;
 			PurpleAccount *account;
 			PurpleConversation *c;
 			char *username;
@@ -909,13 +908,8 @@
 			if (c == NULL)
 				c = purple_conversation_new(PURPLE_CONV_TYPE_IM, account, im->from);
 
-			if ((buddy = purple_find_buddy(account, im->from)) != NULL)
-				username = g_markup_escape_text(purple_buddy_get_alias(buddy), -1);
-			else
-				username = g_markup_escape_text(im->from, -1);
-
+			username = g_markup_escape_text(im->from, -1);
 			serv_got_attention(gc, username, YAHOO_BUZZ);
-
 			g_free(username);
 			g_free(m);
 			g_free(im);