# HG changeset patch # User Mark Doliner # Date 1132121262 0 # Node ID b528f37d8e957b2cb89fa016ef72f9d9e03a3415 # Parent a60677ffcf8bb4832d58d40f1671b63e8be145ab [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 diff -r a60677ffcf8b -r b528f37d8e95 src/protocols/silc/buddy.c --- 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); } } }