summaryrefslogtreecommitdiffstats
path: root/mbbsd/talk.c
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-05-25 08:58:13 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-05-25 08:58:13 +0800
commitfc04da59ed35b5f2106bf78f560f703bc28fb1ae (patch)
tree73f247fc4b79aacaf6a11e425e7c81cee8572980 /mbbsd/talk.c
parent133eb32129d281368de061e8e594709f40644c46 (diff)
downloadpttbbs-fc04da59ed35b5f2106bf78f560f703bc28fb1ae.tar
pttbbs-fc04da59ed35b5f2106bf78f560f703bc28fb1ae.tar.gz
pttbbs-fc04da59ed35b5f2106bf78f560f703bc28fb1ae.tar.bz2
pttbbs-fc04da59ed35b5f2106bf78f560f703bc28fb1ae.tar.lz
pttbbs-fc04da59ed35b5f2106bf78f560f703bc28fb1ae.tar.xz
pttbbs-fc04da59ed35b5f2106bf78f560f703bc28fb1ae.tar.zst
pttbbs-fc04da59ed35b5f2106bf78f560f703bc28fb1ae.zip
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
Diffstat (limited to 'mbbsd/talk.c')
-rw-r--r--mbbsd/talk.c3
1 files changed, 2 insertions, 1 deletions
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 <stdio.h>
#include <string.h>
#include <errno.h>
@@ -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)