# HG changeset patch # User Mark Doliner # Date 1233773951 0 # Node ID 4278d13b5471e432c5e1a1ba8230992b8a44e9e3 # Parent b0c75121cf66f89fb5484892a4d47c45ad59db9c Wait to set the account online until after we've fetched our buddy list. I think it's a good idea for protocols to do this, in general. diff -r b0c75121cf66 -r 4278d13b5471 libpurple/protocols/myspace/myspace.c --- a/libpurple/protocols/myspace/myspace.c Wed Feb 04 05:15:49 2009 +0000 +++ b/libpurple/protocols/myspace/myspace.c Wed Feb 04 18:59:11 2009 +0000 @@ -1146,7 +1146,11 @@ break; case MSIM_CONTACT_LIST_INITIAL_FRIENDS: - /* Nothing */ + /* The session is now set up, ready to be connected. This emits the + * signedOn signal, so clients can now do anything with msimprpl, and + * we're ready for it (session key, userid, username all setup). */ + purple_connection_update_progress(session->gc, _("Connected"), 3, 4); + purple_connection_set_state(session->gc, PURPLE_CONNECTED); break; } @@ -1185,12 +1189,6 @@ /* 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 - * we're ready for it (session key, userid, username all setup). */ - purple_connection_update_progress(session->gc, _("Connected"), 3, 4); - purple_connection_set_state(session->gc, PURPLE_CONNECTED); - body = msim_msg_new( "UserID", MSIM_TYPE_INTEGER, session->userid, NULL);