comparison 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
comparison
equal deleted inserted replaced
14317:c8ddda5d8ec8 14318:437ce90442cf
229 qq_group_init(gc); 229 qq_group_init(gc);
230 230
231 /* Now goes on updating my icon/nickname, not showing info_window */ 231 /* Now goes on updating my icon/nickname, not showing info_window */
232 qd->modifying_face = FALSE; 232 qd->modifying_face = FALSE;
233 qq_send_packet_get_info(gc, qd->uid, FALSE); 233 qq_send_packet_get_info(gc, qd->uid, FALSE);
234 /* change my status manually, even server may broadcast my online */ 234
235 qd->status = (qd->login_mode == QQ_LOGIN_MODE_HIDDEN) ? QQ_SELF_STATUS_INVISIBLE : QQ_SELF_STATUS_AVAILABLE;
236 qq_send_packet_change_status(gc); 235 qq_send_packet_change_status(gc);
236
237 /* now refresh buddy list */ 237 /* now refresh buddy list */
238
239 /* changed by gfhuang, using With Qun version, error, not working still */ 238 /* changed by gfhuang, using With Qun version, error, not working still */
240 qq_send_packet_get_buddies_list(gc, QQ_FRIENDS_LIST_POSITION_START); 239 qq_send_packet_get_buddies_list(gc, QQ_FRIENDS_LIST_POSITION_START);
241 /* qq_send_packet_get_all_list_with_group(gc, QQ_FRIENDS_LIST_POSITION_START); */ 240 /* qq_send_packet_get_all_list_with_group(gc, QQ_FRIENDS_LIST_POSITION_START); */
242 241
243 return QQ_LOGIN_REPLY_OK; 242 return QQ_LOGIN_REPLY_OK;