summaryrefslogtreecommitdiffstats
path: root/mbbsd/bbs.c
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-02-12 19:55:20 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-02-12 19:55:20 +0800
commit151751149b28f439cade47a22042be91781019d2 (patch)
treebe550df649bcd2572fe1e7d7f7eee87dc0487200 /mbbsd/bbs.c
parent75461497ac8f148e7e2f37880f99cff88667fce1 (diff)
downloadpttbbs-151751149b28f439cade47a22042be91781019d2.tar
pttbbs-151751149b28f439cade47a22042be91781019d2.tar.gz
pttbbs-151751149b28f439cade47a22042be91781019d2.tar.bz2
pttbbs-151751149b28f439cade47a22042be91781019d2.tar.lz
pttbbs-151751149b28f439cade47a22042be91781019d2.tar.xz
pttbbs-151751149b28f439cade47a22042be91781019d2.tar.zst
pttbbs-151751149b28f439cade47a22042be91781019d2.zip
show a warning message if SYSOP enters a hidden board
and s/he is not in its board friend list. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2501 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/bbs.c')
-rw-r--r--mbbsd/bbs.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c
index b99b7d0d..2f26b5b9 100644
--- a/mbbsd/bbs.c
+++ b/mbbsd/bbs.c
@@ -120,6 +120,13 @@ set_board(void)
u_exit("access control violation!");
exit(-1);
}
+
+ if( HAS_PERM(PERM_SYSOP) &&
+ (bp->brdattr & BRD_HIDE) &&
+ !is_BM_cache(bp - bcache + 1) &&
+ hbflcheck((int)(bp - bcache) + 1, currutmp->uid) )
+ vmsg("進入未經授權看板");
+
board_note_time = &bp->bupdate;
if(bp->BM[0] <= ' ')
strcpy(currBM, "徵求中");