Mercurial > pidgin.yaz
comparison src/protocols/simple/simple.c @ 11192:fd6232f9a418
[gaim-migrate @ 13310]
only add buddies from the right account
committer: Tailor Script <tailor@pidgin.im>
author | Thomas Butter <tbutter> |
---|---|
date | Fri, 05 Aug 2005 01:24:55 +0000 |
parents | d4c34046f942 |
children | 4c1f45ac00e9 |
comparison
equal
deleted
inserted
replaced
11191:d4c34046f942 | 11192:fd6232f9a418 |
---|---|
196 if(!GAIM_BLIST_NODE_IS_GROUP(gnode)) continue; | 196 if(!GAIM_BLIST_NODE_IS_GROUP(gnode)) continue; |
197 for(cnode = gnode->child; cnode; cnode = cnode->next) { | 197 for(cnode = gnode->child; cnode; cnode = cnode->next) { |
198 if(!GAIM_BLIST_NODE_IS_CONTACT(cnode)) continue; | 198 if(!GAIM_BLIST_NODE_IS_CONTACT(cnode)) continue; |
199 for(bnode = cnode->child; bnode; bnode = bnode->next) { | 199 for(bnode = cnode->child; bnode; bnode = bnode->next) { |
200 if(!GAIM_BLIST_NODE_IS_BUDDY(bnode)) continue; | 200 if(!GAIM_BLIST_NODE_IS_BUDDY(bnode)) continue; |
201 simple_add_buddy(gc, (GaimBuddy*)bnode, (GaimGroup *)gnode); | 201 if(((GaimBuddy*)bnode)->account == gc->account) |
202 simple_add_buddy(gc, (GaimBuddy*)bnode, (GaimGroup *)gnode); | |
202 } | 203 } |
203 } | 204 } |
204 } | 205 } |
205 } | 206 } |
206 | 207 |