diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-02-12 19:55:20 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-02-12 19:55:20 +0800 |
commit | 151751149b28f439cade47a22042be91781019d2 (patch) | |
tree | be550df649bcd2572fe1e7d7f7eee87dc0487200 /mbbsd | |
parent | 75461497ac8f148e7e2f37880f99cff88667fce1 (diff) | |
download | pttbbs-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')
-rw-r--r-- | mbbsd/bbs.c | 7 |
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, "徵求中"); |