From af701fbefaca5c71904190f96d59284fff4cfb3d Mon Sep 17 00:00:00 2001 From: ptt Date: Fri, 7 Jun 2002 17:19:47 +0000 Subject: gamle and talk bug fix git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@304 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/talk.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mbbsd/talk.c') diff --git a/mbbsd/talk.c b/mbbsd/talk.c index 90b39eab..51b318e5 100644 --- a/mbbsd/talk.c +++ b/mbbsd/talk.c @@ -1,4 +1,4 @@ -/* $Id: talk.c,v 1.69 2002/06/06 21:34:11 in2 Exp $ */ +/* $Id: talk.c,v 1.70 2002/06/07 17:19:47 ptt Exp $ */ #include "bbs.h" #define QCAST int (*)(const void *, const void *) @@ -2044,12 +2044,12 @@ static void userlist(void) ans, sizeof(ans), LCECHO) && *ans == 'n') break; - if( HAS_PERM(PERM_SYSOP) ){ + if( !(cuser.uflag & FRIEND_FLAG) && HAS_PERM(PERM_SYSOP) ){ for( i = 0 ; i < SHM->UTMPnumber && i<1000 ; ++i ){ uentp = SHM->sorted[SHM->currsorted][0][i]; if( uentp->pid && kill(uentp->pid, 0) != -1 ) my_write(uentp->pid, genbuf, - uentp->userid, 1, NULL); + uentp->userid, 1, NULL); } } else{ -- cgit v1.2.3