Mercurial > pidgin.yaz
changeset 22603:e8d35793bd71
Only call oscar_format_screenname() on connecting if we need to
change our formatting from what the server is using for us.
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Thu, 03 Apr 2008 23:40:45 +0000 |
parents | 9a84976c8e76 |
children | 7612deb3a95a |
files | libpurple/protocols/oscar/oscar.c |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/oscar/oscar.c Thu Apr 03 23:38:59 2008 +0000 +++ b/libpurple/protocols/oscar/oscar.c Thu Apr 03 23:40:45 2008 +0000 @@ -3629,7 +3629,11 @@ 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 */