diff libpurple/protocols/yahoo/libymsg.c @ 27976: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 0ec880685f5f
children 05331a8eafb3 776a9b5bd50c
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);