From fc04da59ed35b5f2106bf78f560f703bc28fb1ae Mon Sep 17 00:00:00 2001 From: in2 Date: Sat, 25 May 2002 00:58:13 +0000 Subject: fix bug - dup myself in friend section (fast user list) git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@210 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/talk.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mbbsd') diff --git a/mbbsd/talk.c b/mbbsd/talk.c index fd75d620..cbbbe3df 100644 --- a/mbbsd/talk.c +++ b/mbbsd/talk.c @@ -1,4 +1,4 @@ -/* $Id: talk.c,v 1.43 2002/05/25 00:51:03 in2 Exp $ */ +/* $Id: talk.c,v 1.44 2002/05/25 00:58:13 in2 Exp $ */ #include #include #include @@ -1529,6 +1529,7 @@ static void pickup_myfriend(pickup_t *friends, int *nGots, where = currutmp->friend_online[i] & 0xFFFFFF; if( 0 <= where && where < MAX_ACTIVE && (uentp = &utmpshm->uinfo[where]) && uentp->pid && + uentp != currutmp && isvisible_stat(currutmp, uentp, frstate = currutmp->friend_online[i] >> 24) -- cgit v1.2.3