pidgin: 3d61d4bc: Only call oscar_format_screenname() on c...

markdoliner at pidgin.im markdoliner at pidgin.im
Thu Apr 3 19:55:47 EDT 2008


-----------------------------------------------------------------
Revision: 3d61d4bcbe9a34a4f5efcbf75caa7dd044090b01
Ancestor: 796370577cccddee5c754016c0242374bb9ddfdc
Author: markdoliner at pidgin.im
Date: 2008-04-03T23:40:45
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/3d61d4bcbe9a34a4f5efcbf75caa7dd044090b01

Modified files:
        libpurple/protocols/oscar/oscar.c

ChangeLog: 

Only call oscar_format_screenname() on connecting if we need to
change our formatting from what the server is using for us.

-------------- next part --------------
============================================================
--- libpurple/protocols/oscar/oscar.c	4cb8d4030fd1717d26871c5c41fcd9c653822f99
+++ libpurple/protocols/oscar/oscar.c	3e173320162c9f05d340bf837c08d0a15c9b4ac9
@@ -3629,7 +3629,11 @@ static int purple_bosrights(OscarData *o
 	if (purple_account_get_user_info(account) != NULL)
 		serv_set_info(gc, purple_account_get_user_info(account));
 
-	if (!od->icq)
+	if (!od->icq && strcmp(purple_account_get_username(account), purple_connection_get_display_name(gc)) != 0)
+		/*
+		 * Format the screen name for AIM accounts if it's different
+		 * than what's currently set.
+		 */
 		oscar_format_screenname(gc, account->username);
 
 	/* Set our available message based on the current status */


More information about the Commits mailing list