libpurple/protocols/myspace/myspace.c

changeset 19958
3fe3fb65017a
parent 19938
a711277dac04
parent 19793
eb87ccb079f1
child 20139
f0cc6a81a9b3
child 20319
0808612cefa9
equal deleted inserted replaced
19957:bb636b927e06 19958:3fe3fb65017a
1525 /* We now know are our own username, only after we're logged in.. 1525 /* We now know are our own username, only after we're logged in..
1526 * which is weird, but happens because you login with your email 1526 * which is weird, but happens because you login with your email
1527 * address and not username. Will be freed in msim_session_destroy(). */ 1527 * address and not username. Will be freed in msim_session_destroy(). */
1528 session->username = msim_msg_get_string(msg, "uniquenick"); 1528 session->username = msim_msg_get_string(msg, "uniquenick");
1529 1529
1530 /* If a local alias wasn't set, set it to user's username. */ 1530 /* Set display name to username (otherwise will show email address) */
1531 if (!session->account->alias || !strlen(session->account->alias)) 1531 purple_connection_set_display_name(session->gc, session->username);
1532 purple_account_set_alias(session->account, session->username);
1533 1532
1534 /* The session is now set up, ready to be connected. This emits the 1533 /* The session is now set up, ready to be connected. This emits the
1535 * signedOn signal, so clients can now do anything with msimprpl, and 1534 * signedOn signal, so clients can now do anything with msimprpl, and
1536 * we're ready for it (session key, userid, username all setup). */ 1535 * we're ready for it (session key, userid, username all setup). */
1537 purple_connection_update_progress(session->gc, _("Connected"), 3, 4); 1536 purple_connection_update_progress(session->gc, _("Connected"), 3, 4);

mercurial