pidgin: a523717d: Wait to set the account online until aft...

markdoliner at pidgin.im markdoliner at pidgin.im
Wed Feb 4 14:00:38 EST 2009


-----------------------------------------------------------------
Revision: a523717d6c4de9802fa07dc80a71f29ab456fc66
Ancestor: 0bb02399ead9501a3e7951cfba2e8e8350fe917c
Author: markdoliner at pidgin.im
Date: 2009-02-04T18:59:11
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/a523717d6c4de9802fa07dc80a71f29ab456fc66

Modified files:
        libpurple/protocols/myspace/myspace.c

ChangeLog: 

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.

-------------- next part --------------
============================================================
--- libpurple/protocols/myspace/myspace.c	842b1b0fa96c1ff7a50885ae603427f1124bf779
+++ libpurple/protocols/myspace/myspace.c	61c5577c0063074b6a9ccc7b4b9527bf953c8dad
@@ -1146,7 +1146,11 @@ msim_got_contact_list(MsimSession *sessi
 			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 @@ gboolean msim_we_are_logged_on(MsimSessi
 	/* 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);


More information about the Commits mailing list