summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2007-12-07 09:52:26 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2007-12-07 09:52:26 +0800
commit9d517c2dd00769cec30f784dd6ecab23c6551f75 (patch)
tree3d3b25a8a85ab8c0332e47bfd6e5763de459ed2d /mbbsd
parent07591dfe81a2901cd577cd5fd3cfed2d2f860740 (diff)
downloadpttbbs-9d517c2dd00769cec30f784dd6ecab23c6551f75.tar
pttbbs-9d517c2dd00769cec30f784dd6ecab23c6551f75.tar.gz
pttbbs-9d517c2dd00769cec30f784dd6ecab23c6551f75.tar.bz2
pttbbs-9d517c2dd00769cec30f784dd6ecab23c6551f75.tar.lz
pttbbs-9d517c2dd00769cec30f784dd6ecab23c6551f75.tar.xz
pttbbs-9d517c2dd00769cec30f784dd6ecab23c6551f75.tar.zst
pttbbs-9d517c2dd00769cec30f784dd6ecab23c6551f75.zip
digest: fixed "user can post at first time entering digest",
reported by flyworldhan@PttCurrent git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3648 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/bbs.c10
-rw-r--r--mbbsd/menu.c3
2 files changed, 8 insertions, 5 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c
index 6e88b144..4a051f35 100644
--- a/mbbsd/bbs.c
+++ b/mbbsd/bbs.c
@@ -224,6 +224,9 @@ CheckPostPerm(void)
static int last_board_index = 0; /* for speed up */
int valid_index = 0;
boardheader_t *bp = NULL;
+
+ if (currmode & MODE_DIGEST)
+ return 0;
if (currmode & MODE_POSTCHECKED)
{
@@ -3191,10 +3194,9 @@ board_digest(void)
if (currmode & MODE_SELECT)
board_select();
currmode ^= MODE_DIGEST;
- if (currmode & MODE_DIGEST)
- currmode &= ~MODE_POST;
- else if (haspostperm(currboard))
- currmode |= MODE_POST;
+
+ // MODE_POST may be changed if board is modified.
+ // do not change post perm here. use other instead.
setbdir(currdirect, currboard);
return NEWDIRECT;
diff --git a/mbbsd/menu.c b/mbbsd/menu.c
index deb83c2f..852c707b 100644
--- a/mbbsd/menu.c
+++ b/mbbsd/menu.c
@@ -11,8 +11,9 @@ extern char board_hidden_status;
static const char *title_tail_msgs[] = {
"看板",
+ "選擇",
"文摘",
- "系列",
+ // "系列", // deprecated?
};
static const char *title_tail_attrs[] = {
ANSI_COLOR(37),