adium: 212bd365: Fix printing "...is known as..." only in...

zacw at adiumx.com zacw at adiumx.com
Fri Nov 13 12:41:07 EST 2009


-----------------------------------------------------------------
Revision: 212bd3655451599364562cabe553c5b7a19134ae
Ancestor: 4186b63b5a916295647d8722226b8ee3125316f3
Author: zacw at adiumx.com
Date: 2009-11-13T17:36:39
Branch: im.pidgin.adium
URL: http://d.pidgin.im/viewmtn/revision/info/212bd3655451599364562cabe553c5b7a19134ae

Modified files:
        libpurple/server.c

ChangeLog: 

Fix printing "...is known as..." only in cases where the name didn't change.

-------------- next part --------------
============================================================
--- libpurple/server.c	06c765280106b4e05de9e4f0b0273c98bf1854f3
+++ libpurple/server.c	2b3ba919ea5bc2b9ec70760de3a2d49a1c13a074
@@ -258,7 +258,7 @@ serv_got_alias(PurpleConnection *gc, con
 		purple_blist_server_alias_buddy(b, alias);
 
 		conv = purple_find_conversation_with_account(PURPLE_CONV_TYPE_IM, purple_buddy_get_name(b), account);
-		if (conv != NULL && alias != NULL && purple_strequal(alias, who))
+		if (conv != NULL && alias != NULL && !purple_strequal(alias, who))
 		{
 			char *escaped = g_markup_escape_text(who, -1);
 			char *escaped2 = g_markup_escape_text(alias, -1);


More information about the Commits mailing list