summaryrefslogtreecommitdiffstats
path: root/mbbsd/bbs.c
diff options
context:
space:
mode:
authorvictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-04-02 13:40:02 +0800
committervictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-04-02 13:40:02 +0800
commit1697e1cb9aa43d524fd2f29ec33fa12f52716b72 (patch)
treedf3fff54845a167fdbae67bce510f89471e3bad2 /mbbsd/bbs.c
parent873faac1f37dc1c1b664e07b00f37ea56a209888 (diff)
downloadpttbbs-1697e1cb9aa43d524fd2f29ec33fa12f52716b72.tar
pttbbs-1697e1cb9aa43d524fd2f29ec33fa12f52716b72.tar.gz
pttbbs-1697e1cb9aa43d524fd2f29ec33fa12f52716b72.tar.bz2
pttbbs-1697e1cb9aa43d524fd2f29ec33fa12f52716b72.tar.lz
pttbbs-1697e1cb9aa43d524fd2f29ec33fa12f52716b72.tar.xz
pttbbs-1697e1cb9aa43d524fd2f29ec33fa12f52716b72.tar.zst
pttbbs-1697e1cb9aa43d524fd2f29ec33fa12f52716b72.zip
bm permission error
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1672 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/bbs.c')
-rw-r--r--mbbsd/bbs.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c
index 7f1369ca..0960080e 100644
--- a/mbbsd/bbs.c
+++ b/mbbsd/bbs.c
@@ -124,6 +124,9 @@ set_board()
/* init basic perm, but post perm is checked on demand */
currmode = (currmode & (MODE_DIRTY | MODE_GROUPOP)) | MODE_STARTED;
+ if (HAS_PERM(PERM_ALLBOARD) || is_BM_cache(currbid)) {
+ currmode = currmode | MODE_BOARD | MODE_POST | MODE_POSTCHECKED;
+ }
}
/* check post perm on demand, no double checks in current board */
@@ -131,11 +134,7 @@ int CheckPostPerm(void)
{
if (!(currmode & MODE_POSTCHECKED)) {
currmode |= MODE_POSTCHECKED;
- if (HAS_PERM(PERM_ALLBOARD) || is_BM_cache(currbid)) {
- currmode = currmode | MODE_BOARD | MODE_POST;
- return 1;
- }
- else if (haspostperm(currboard)) {
+ if (haspostperm(currboard)) {
currmode |= MODE_POST;
return 1;
}