comparison libpurple/protocols/msn/sync.c @ 17349:59e09ff3490d

Handle new accounts with no buddies better - finish login when the first group is received, this allows us to handle the GTC, BLP & PRP commands for new accounts.
author Stu Tomlinson <stu@nosnilmot.com>
date Sun, 27 May 2007 12:39:24 +0000
parents 32c366eeeb99
children 42444b7071d3
comparison
equal deleted inserted replaced
17348:c8891ebd48db 17349:59e09ff3490d
97 97
98 msn_group_new(session->userlist, group_id, name); 98 msn_group_new(session->userlist, group_id, name);
99 99
100 /* HACK */ 100 /* HACK */
101 if (group_id == 0) 101 if (group_id == 0)
102 {
102 /* Group of ungroupped buddies */ 103 /* Group of ungroupped buddies */
104 if (session->sync->total_users == 0)
105 {
106 cmdproc->cbs_table = session->sync->old_cbs_table;
107
108 msn_session_finish_login(session);
109
110 msn_sync_destroy(session->sync);
111 session->sync = NULL;
112 }
103 return; 113 return;
114 }
104 115
105 if ((purple_find_group(name)) == NULL) 116 if ((purple_find_group(name)) == NULL)
106 { 117 {
107 PurpleGroup *g = purple_group_new(name); 118 PurpleGroup *g = purple_group_new(name);
108 purple_blist_add_group(g, NULL); 119 purple_blist_add_group(g, NULL);