diff 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
line wrap: on
line diff
--- a/src/protocols/simple/simple.c	Fri Aug 05 01:17:42 2005 +0000
+++ b/src/protocols/simple/simple.c	Fri Aug 05 01:24:55 2005 +0000
@@ -198,7 +198,8 @@
 			if(!GAIM_BLIST_NODE_IS_CONTACT(cnode)) continue;
 			for(bnode = cnode->child; bnode; bnode = bnode->next) {
 				if(!GAIM_BLIST_NODE_IS_BUDDY(bnode)) continue;
-				simple_add_buddy(gc, (GaimBuddy*)bnode, (GaimGroup *)gnode);
+				if(((GaimBuddy*)bnode)->account == gc->account)
+					simple_add_buddy(gc, (GaimBuddy*)bnode, (GaimGroup *)gnode);
 			}
 		}
 	}