| 268 |
268 |
| 269 g_return_if_fail(gc != NULL); |
269 g_return_if_fail(gc != NULL); |
| 270 |
270 |
| 271 /* The core used to use msn_add_buddy to add all buddies before |
271 /* The core used to use msn_add_buddy to add all buddies before |
| 272 * being logged in. This no longer happens, so we manually iterate |
272 * being logged in. This no longer happens, so we manually iterate |
| 273 * over the whole buddy list to identify sync issues. */ |
273 * over the whole buddy list to identify sync issues. |
| |
274 */ |
| 274 for (gnode = gaim_get_blist()->root; gnode; gnode = gnode->next){ |
275 for (gnode = gaim_get_blist()->root; gnode; gnode = gnode->next){ |
| 275 GaimGroup *group = (GaimGroup *)gnode; |
276 GaimGroup *group = (GaimGroup *)gnode; |
| 276 const char *group_name = group->name; |
277 const char *group_name = group->name; |
| 277 if(!GAIM_BLIST_NODE_IS_GROUP(gnode)) |
278 if(!GAIM_BLIST_NODE_IS_GROUP(gnode)) |
| 278 continue; |
279 continue; |
| 297 |
298 |
| 298 if ((remote_user != NULL) && (remote_user->list_op & MSN_LIST_FL_OP)){ |
299 if ((remote_user != NULL) && (remote_user->list_op & MSN_LIST_FL_OP)){ |
| 299 const char *group_id; |
300 const char *group_id; |
| 300 GList *l; |
301 GList *l; |
| 301 |
302 |
| |
303 gaim_debug_info("MaYuan","remote user:{%s}\n",b->name); |
| 302 group_id = msn_userlist_find_group_id(remote_user->userlist, |
304 group_id = msn_userlist_find_group_id(remote_user->userlist, |
| 303 group_name); |
305 group_name); |
| 304 if(group_id == NULL){ |
306 if(group_id == NULL){ |
| 305 continue; |
307 continue; |
| 306 } |
308 } |
| |
309 gaim_debug_info("MaYuan","group_id:{%s}\n",group_id); |
| 307 |
310 |
| 308 for (l = remote_user->group_ids; l != NULL; l = l->next){ |
311 for (l = remote_user->group_ids; l != NULL; l = l->next){ |
| |
312 gaim_debug_info("MaYuan","l->data:{%s}\n",l->data); |
| 309 if (!g_strcasecmp(group_id ,l->data)){ |
313 if (!g_strcasecmp(group_id ,l->data)){ |
| 310 found = TRUE; |
314 found = TRUE; |
| 311 break; |
315 break; |
| 312 } |
316 } |
| 313 } |
317 } |