comparison src/protocols/msn/session.c @ 19785:852b32710df0

[gaim-migrate @ 16507] add the contact list retrieve and dump contact list to server currently can do chanllenge successfully But can't get the buddy list done by MaYuan<mayuan2006@gmail.com> committer: Ethan Blanton <elb@pidgin.im>
author Ma Yuan <mayuan2006@gmail.com>
date Mon, 17 Jul 2006 12:22:37 +0000
parents bc30c6270d9f
children 23258253c7a0
comparison
equal deleted inserted replaced
19784:bc30c6270d9f 19785:852b32710df0
250 MsnUser *remote_user; 250 MsnUser *remote_user;
251 gboolean found = FALSE; 251 gboolean found = FALSE;
252 252
253 remote_user = msn_userlist_find_user(session->userlist, b->name); 253 remote_user = msn_userlist_find_user(session->userlist, b->name);
254 254
255 if ((remote_user != NULL) && (remote_user->list_op & MSN_LIST_FL_OP)) 255 if ((remote_user != NULL) && (remote_user->list_op & MSN_LIST_FL_OP)){
256 {
257 int group_id; 256 int group_id;
258 GList *l; 257 GList *l;
259 258
260 group_id = msn_userlist_find_group_id(remote_user->userlist, 259 group_id = msn_userlist_find_group_id(remote_user->userlist,
261 group_name); 260 group_name);
262 261
263 for (l = remote_user->group_ids; l != NULL; l = l->next) 262 for (l = remote_user->group_ids; l != NULL; l = l->next){
264 { 263 if (group_id == GPOINTER_TO_INT(l->data)){
265 if (group_id == GPOINTER_TO_INT(l->data))
266 {
267 found = TRUE; 264 found = TRUE;
268 break; 265 break;
269 } 266 }
270 } 267 }
271 268
272 } 269 }
273 270
274 if (!found) 271 if (!found){
275 {
276 /* The user was not on the server list or not in that group 272 /* The user was not on the server list or not in that group
277 * on the server list */ 273 * on the server list */
278 msn_show_sync_issue(session, b->name, group_name); 274 msn_show_sync_issue(session, b->name, group_name);
279 } 275 }
280 } 276 }
405 gaim_connection_set_state(gc, GAIM_CONNECTED); 401 gaim_connection_set_state(gc, GAIM_CONNECTED);
406 402
407 /* Sync users */ 403 /* Sync users */
408 msn_session_sync_users(session); 404 msn_session_sync_users(session);
409 } 405 }
406