changeset 21730:e501c2c675cd

Always set gc->display_name to the formatted version of your screen name even when you're not in your buddylist. This fix is care of meebo
author Mark Doliner <mark@kingant.net>
date Sun, 02 Dec 2007 20:22:32 +0000
parents da244d258b03
children ea32d04d87dd
files libpurple/protocols/oscar/oscar.c
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/oscar/oscar.c	Sun Dec 02 20:03:34 2007 +0000
+++ b/libpurple/protocols/oscar/oscar.c	Sun Dec 02 20:22:32 2007 +0000
@@ -1831,9 +1831,6 @@
 		signon = info->onlinesince;
 	else if (info->present & AIM_USERINFO_PRESENT_SESSIONLEN)
 		signon = time(NULL) - info->sessionlen;
-	if (!aim_sncmp(purple_account_get_username(account), info->sn)) {
-		purple_connection_set_display_name(gc, info->sn);
-	}
 	purple_prpl_got_user_login_time(account, info->sn, signon);
 
 	/* Idle time stuff */
@@ -3435,6 +3432,8 @@
 	info = va_arg(ap, aim_userinfo_t *);
 	va_end(ap);
 
+	purple_connection_set_display_name(od->gc, info->sn);
+
 	/*
 	 * What's with the + 0.5?
 	 * The 0.5 is basically poor-man's rounding.  Normally