Mercurial > pidgin.yaz
changeset 19890:39d620a93907
Use purple_connection_set_display_name() to set the display name to the
username, instead of setting a local alias if one isn't set. This allows
the user to set a local alias if they want, and if it is unset, the
displayed name will revert back to the username instead of email address.
Closes #2793.
author | Jeffrey Connelly <jaconnel@calpoly.edu> |
---|---|
date | Tue, 11 Sep 2007 23:50:37 +0000 |
parents | 9968fff36e20 |
children | 191fa8a8c0bc 0c83ec8cf17c |
files | libpurple/protocols/myspace/myspace.c |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/myspace/myspace.c Wed Sep 05 04:52:33 2007 +0000 +++ b/libpurple/protocols/myspace/myspace.c Tue Sep 11 23:50:37 2007 +0000 @@ -1527,9 +1527,8 @@ * address and not username. Will be freed in msim_session_destroy(). */ session->username = msim_msg_get_string(msg, "uniquenick"); - /* If a local alias wasn't set, set it to user's username. */ - if (!session->account->alias || !strlen(session->account->alias)) - purple_account_set_alias(session->account, session->username); + /* Set display name to username (otherwise will show email address) */ + purple_connection_set_display_name(session->gc, session->username); /* The session is now set up, ready to be connected. This emits the * signedOn signal, so clients can now do anything with msimprpl, and