changeset 12111:b528f37d8e95

[gaim-migrate @ 14411] sf patch #1357831, from Sadrul Habib Chowdhury Looks like this was my bug (me being KingAnt). Sorry! The description from Sadrul: This is a simple fix for the following "ShowStopperBug" (from the kwiki): ========== buddy shows as online when offline * I(luke) played with this some today. when my lschiere SILC account signs on, lschiere(aim) appears on my LSchiere2 buddy list as though signing on. As far as the gaim UI is concerned, there is no SILC buddy in that contact. as LSchiere (aim) is my account, I am quite sure that it is not online, plus attempting to IM it yeilds the same result. ========== committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Wed, 16 Nov 2005 06:07:42 +0000
parents a60677ffcf8b
children 875f59f9c0bb
files src/protocols/silc/buddy.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/silc/buddy.c	Wed Nov 16 02:58:28 2005 +0000
+++ b/src/protocols/silc/buddy.c	Wed Nov 16 06:07:42 2005 +0000
@@ -1341,6 +1341,9 @@
 	GaimBuddyList *blist;
 	GaimBlistNode *gnode, *cnode, *bnode;
 	GaimBuddy *buddy;
+	GaimAccount *account;
+
+	account = gaim_connection_get_account(gc);
 
 	if ((blist = gaim_get_blist()) != NULL)
 	{
@@ -1357,7 +1360,8 @@
 					if (!GAIM_BLIST_NODE_IS_BUDDY(bnode))
 						continue;
 					buddy = (GaimBuddy *)bnode;
-					silcgaim_add_buddy_i(gc, buddy, TRUE);
+					if (gaim_buddy_get_account(buddy) == account)
+						silcgaim_add_buddy_i(gc, buddy, TRUE);
 				}
 			}
 		}