Mercurial > pidgin.yaz
diff libgaim/protocols/msn/session.c @ 20396:9755b2f7bb0f
Revert some whitespace changes.
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Sun, 15 Apr 2007 02:42:11 +0000 |
parents | d634f88e25d8 |
children |
line wrap: on
line diff
--- a/libgaim/protocols/msn/session.c Sun Apr 15 02:18:17 2007 +0000 +++ b/libgaim/protocols/msn/session.c Sun Apr 15 02:42:11 2007 +0000 @@ -42,6 +42,7 @@ session->user = msn_user_new(session->userlist, gaim_account_get_username(account), NULL); + session->bnode = NULL; /*if you want to chat with Yahoo Messenger*/ @@ -270,7 +271,13 @@ g_return_if_fail(gc != NULL); - for (gnode = gaim_get_blist()->root; gnode; gnode = gnode->next){ + /* The core used to use msn_add_buddy to add all buddies before + * being logged in. This no longer happens, so we manually iterate + * over the whole buddy list to identify sync issues. */ + + for (gnode = gaim_get_blist()->root; gnode; gnode = gnode->next) { + GaimGroup *group = (GaimGroup *)gnode; + const char *group_name = group->name; if(!GAIM_BLIST_NODE_IS_GROUP(gnode)) continue; for(cnode = gnode->child; cnode; cnode = cnode->next) { @@ -357,9 +364,11 @@ break; } } + } - if (!found){ + if (!found) + { /* The user was not on the server list or not in that group * on the server list */ msn_show_sync_issue(session, b->name, group_name); @@ -494,4 +503,3 @@ /* Sync users */ msn_session_sync_users(session); } -