Mercurial > pidgin
diff src/connection.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 | fe569b675cd2 |
children | feb3d21a7794 |
line wrap: on
line diff
--- a/src/connection.c Tue Sep 02 03:34:37 2003 +0000 +++ b/src/connection.c Tue Sep 02 03:41:10 2003 +0000 @@ -305,7 +305,7 @@ } if (gc->state == GAIM_CONNECTED) { - GaimBlistNode *gnode,*bnode; + GaimBlistNode *gnode,*cnode,*bnode; GList *wins; GList *add_buds=NULL; @@ -352,9 +352,15 @@ for (gnode = gaim_get_blist()->root; gnode; gnode = gnode->next) { if(!GAIM_BLIST_NODE_IS_GROUP(gnode)) continue; - for(bnode = gnode->child; bnode; bnode = bnode->next) { - if(GAIM_BLIST_NODE_IS_BUDDY(bnode)) { - struct buddy *b = (struct buddy *)bnode; + for(cnode = gnode->child; cnode; cnode = cnode->next) { + if(!GAIM_BLIST_NODE_IS_CONTACT(cnode)) + continue; + for(bnode = cnode->child; bnode; bnode = bnode->next) { + GaimBuddy *b; + if(!GAIM_BLIST_NODE_IS_BUDDY(bnode)) + continue; + + b = (GaimBuddy *)bnode; if(b->account == gc->account) { add_buds = g_list_append(add_buds, b->name); }