diff libgaim/protocols/qq/login_logout.c @ 14318:437ce90442cf

[gaim-migrate @ 17011] Use GaimPresence to keep track of our status instead of qd->status. Also allow invisible logins. committer: Tailor Script <tailor@pidgin.im>
author Mark Huetsch <markhuetsch>
date Thu, 24 Aug 2006 07:00:34 +0000
parents 584cbd1628d0
children 8ff8f1c897b5
line wrap: on
line diff
--- a/libgaim/protocols/qq/login_logout.c	Thu Aug 24 02:35:15 2006 +0000
+++ b/libgaim/protocols/qq/login_logout.c	Thu Aug 24 07:00:34 2006 +0000
@@ -231,11 +231,10 @@
 	/* Now goes on updating my icon/nickname, not showing info_window */
 	qd->modifying_face = FALSE;
 	qq_send_packet_get_info(gc, qd->uid, FALSE);
-	/* change my status manually, even server may broadcast my online */
-	qd->status = (qd->login_mode == QQ_LOGIN_MODE_HIDDEN) ? QQ_SELF_STATUS_INVISIBLE : QQ_SELF_STATUS_AVAILABLE;
+
 	qq_send_packet_change_status(gc);
+
 	/* now refresh buddy list */
-
 	/* changed by gfhuang, using With Qun version, error, not working still */
 	qq_send_packet_get_buddies_list(gc, QQ_FRIENDS_LIST_POSITION_START);
 	/* qq_send_packet_get_all_list_with_group(gc, QQ_FRIENDS_LIST_POSITION_START); */