Mercurial > pidgin.yaz
comparison src/account.c @ 6695:0c5637b5462e
[gaim-migrate @ 7221]
This is contact support. Really.
It has a few bugs left in it, like sorting not working, and stuff like that,
but it's pretty solid for the most part.
I'm not in the mood to do a whole lot of typing, so just use and enjoy.
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Tue, 02 Sep 2003 03:41:10 +0000 |
parents | 42fdf16f1dad |
children | dece74f05509 |
comparison
equal
deleted
inserted
replaced
6694:2d2f04c5c7d2 | 6695:0c5637b5462e |
---|---|
1298 } | 1298 } |
1299 | 1299 |
1300 void | 1300 void |
1301 gaim_accounts_delete(GaimAccount *account) | 1301 gaim_accounts_delete(GaimAccount *account) |
1302 { | 1302 { |
1303 GaimBlistNode *gnode, *bnode; | 1303 GaimBlistNode *gnode, *cnode, *bnode; |
1304 | 1304 |
1305 g_return_if_fail(account != NULL); | 1305 g_return_if_fail(account != NULL); |
1306 | 1306 |
1307 gaim_accounts_remove(account); | 1307 gaim_accounts_remove(account); |
1308 | 1308 |
1309 for (gnode = gaim_get_blist()->root; gnode != NULL; gnode = gnode->next) { | 1309 for (gnode = gaim_get_blist()->root; gnode != NULL; gnode = gnode->next) { |
1310 if (!GAIM_BLIST_NODE_IS_GROUP(gnode)) | 1310 if (!GAIM_BLIST_NODE_IS_GROUP(gnode)) |
1311 continue; | 1311 continue; |
1312 | 1312 for (cnode = gnode->child; cnode; cnode = cnode->next) { |
1313 for (bnode = gnode->child; bnode != NULL; bnode = bnode->next) { | 1313 if(GAIM_BLIST_NODE_IS_CONTACT(cnode)) { |
1314 if (GAIM_BLIST_NODE_IS_BUDDY(bnode)) { | 1314 for (bnode = cnode->child; bnode; bnode = bnode->next) { |
1315 struct buddy *b = (struct buddy *)bnode; | 1315 if (GAIM_BLIST_NODE_IS_BUDDY(bnode)) { |
1316 | 1316 GaimBuddy *b = (GaimBuddy *)bnode; |
1317 if (b->account == account) | 1317 |
1318 gaim_blist_remove_buddy(b); | 1318 if (b->account == account) |
1319 } | 1319 gaim_blist_remove_buddy(b); |
1320 else if (GAIM_BLIST_NODE_IS_CHAT(bnode)) { | 1320 } |
1321 struct chat *c = (struct chat *)bnode; | 1321 } |
1322 } else if (GAIM_BLIST_NODE_IS_CHAT(cnode)) { | |
1323 GaimBlistChat *c = (GaimBlistChat *)cnode; | |
1322 | 1324 |
1323 if (c->account == account) | 1325 if (c->account == account) |
1324 gaim_blist_remove_chat(c); | 1326 gaim_blist_remove_chat(c); |
1325 } | 1327 } |
1326 } | 1328 } |