src/protocols/silc/buddy.c

changeset 12111
a939a3c185f9
parent 12058
6d4b6e3bd0ba
child 12167
f3ad3170f09d
equal deleted inserted replaced
12110:7b6c8a3abdd6 12111:a939a3c185f9
1339 void silcgaim_send_buddylist(GaimConnection *gc) 1339 void silcgaim_send_buddylist(GaimConnection *gc)
1340 { 1340 {
1341 GaimBuddyList *blist; 1341 GaimBuddyList *blist;
1342 GaimBlistNode *gnode, *cnode, *bnode; 1342 GaimBlistNode *gnode, *cnode, *bnode;
1343 GaimBuddy *buddy; 1343 GaimBuddy *buddy;
1344 GaimAccount *account;
1345
1346 account = gaim_connection_get_account(gc);
1344 1347
1345 if ((blist = gaim_get_blist()) != NULL) 1348 if ((blist = gaim_get_blist()) != NULL)
1346 { 1349 {
1347 for (gnode = blist->root; gnode != NULL; gnode = gnode->next) 1350 for (gnode = blist->root; gnode != NULL; gnode = gnode->next)
1348 { 1351 {
1355 for (bnode = cnode->child; bnode != NULL; bnode = bnode->next) 1358 for (bnode = cnode->child; bnode != NULL; bnode = bnode->next)
1356 { 1359 {
1357 if (!GAIM_BLIST_NODE_IS_BUDDY(bnode)) 1360 if (!GAIM_BLIST_NODE_IS_BUDDY(bnode))
1358 continue; 1361 continue;
1359 buddy = (GaimBuddy *)bnode; 1362 buddy = (GaimBuddy *)bnode;
1360 silcgaim_add_buddy_i(gc, buddy, TRUE); 1363 if (gaim_buddy_get_account(buddy) == account)
1364 silcgaim_add_buddy_i(gc, buddy, TRUE);
1361 } 1365 }
1362 } 1366 }
1363 } 1367 }
1364 } 1368 }
1365 } 1369 }

mercurial