# HG changeset patch # User Jeffrey Connelly # Date 1189554637 0 # Node ID 39d620a939072828460ec1773dc8440cd3460427 # Parent 9968fff36e204680c6c1506ec08250b8982166ab 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. diff -r 9968fff36e20 -r 39d620a93907 libpurple/protocols/myspace/myspace.c --- 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