changeset 27639:482a5edc4799

kevin_BB on irc was reporting that doing things on connect didn't work, and this is why
author Ka-Hing Cheung <khc@hxbc.us>
date Tue, 21 Jul 2009 04:24:46 +0000
parents 91333c6c16ef
children 7e473a437c7f
files libpurple/protocols/yahoo/libymsg.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/yahoo/libymsg.c	Sun Jul 19 22:40:10 2009 +0000
+++ b/libpurple/protocols/yahoo/libymsg.c	Tue Jul 21 04:24:46 2009 +0000
@@ -579,14 +579,14 @@
 
 	/* Now that we have processed the buddy list, we can say yahoo has connected */
 	purple_connection_set_display_name(gc, purple_normalize(account, purple_account_get_username(account)));
+	yd->logged_in = TRUE;
+	purple_debug_info("yahoo","Authentication: Connection established\n");
 	purple_connection_set_state(gc, PURPLE_CONNECTED);
-	yd->logged_in = TRUE;
 	if (yd->picture_upload_todo) {
 		yahoo_buddy_icon_upload(gc, yd->picture_upload_todo);
 		yd->picture_upload_todo = NULL;
 	}
 	yahoo_set_status(account, purple_account_get_active_status(account));
-	purple_debug_info("yahoo","Authentication: Connection established\n");
 
 	g_hash_table_destroy(ht);
 	g_free(norm_bud);