summaryrefslogtreecommitdiffstats
path: root/mbbsd/bbs.c
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-05-12 21:47:03 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-05-12 21:47:03 +0800
commitd044c958c8acf4cd0dff6fed337d485b9c0f30a4 (patch)
tree94396a0006bd54be61eb953015590cc543fadb95 /mbbsd/bbs.c
parent7d4d38cd01595fab2551b723e57ce8dba885319d (diff)
downloadpttbbs-d044c958c8acf4cd0dff6fed337d485b9c0f30a4.tar
pttbbs-d044c958c8acf4cd0dff6fed337d485b9c0f30a4.tar.gz
pttbbs-d044c958c8acf4cd0dff6fed337d485b9c0f30a4.tar.bz2
pttbbs-d044c958c8acf4cd0dff6fed337d485b9c0f30a4.tar.lz
pttbbs-d044c958c8acf4cd0dff6fed337d485b9c0f30a4.tar.xz
pttbbs-d044c958c8acf4cd0dff6fed337d485b9c0f30a4.tar.zst
pttbbs-d044c958c8acf4cd0dff6fed337d485b9c0f30a4.zip
remove MODE_ETC useless function
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1960 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/bbs.c')
-rw-r--r--mbbsd/bbs.c18
1 files changed, 2 insertions, 16 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c
index fb2480f8..19fd7c67 100644
--- a/mbbsd/bbs.c
+++ b/mbbsd/bbs.c
@@ -1536,7 +1536,7 @@ recommend(int ent, fileheader_t * fhdr, char *direct)
return FULLUPDATE;
}
#ifndef DEBUG
- if (now - lastrecommend < 40) {
+ if (!(currmode & MODE_BOARD)&& now - lastrecommend < 40) {
vmsg("離上次時間太近囉, 請多花點時間仔細閱\讀文章!");
return FULLUPDATE;
}
@@ -2087,20 +2087,6 @@ board_digest()
return NEWDIRECT;
}
-int
-board_etc()
-{
- if (!HAS_PERM(PERM_SYSOP))
- return DONOTHING;
- currmode ^= MODE_ETC;
- if (currmode & MODE_ETC)
- currmode &= ~MODE_POST;
- else if (haspostperm(currboard))
- currmode |= MODE_POST;
-
- setbdir(currdirect, currboard);
- return NEWDIRECT;
-}
static int
push_bottom(int ent, fileheader_t * fhdr, char *direct)
@@ -2364,7 +2350,7 @@ onekey_t read_comms[] = {
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, // 'A' 65
bh_title_edit, // 'B'
- board_etc, // 'C'
+ NULL, // 'C'
del_range, // 'D'
edit_post, // 'E'
NULL, // 'F'