diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-04-02 14:05:31 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-04-02 14:05:31 +0800 |
commit | 8ddc455e8b8c4d8196ada293f5029ae113d54b5a (patch) | |
tree | 531e6520a280af38d599abf7d743ab7fc035a9bb /mbbsd | |
parent | 2090666ec7d9c2369fc58fcc3eeb7229a635a3b8 (diff) | |
download | pttbbs-8ddc455e8b8c4d8196ada293f5029ae113d54b5a.tar pttbbs-8ddc455e8b8c4d8196ada293f5029ae113d54b5a.tar.gz pttbbs-8ddc455e8b8c4d8196ada293f5029ae113d54b5a.tar.bz2 pttbbs-8ddc455e8b8c4d8196ada293f5029ae113d54b5a.tar.lz pttbbs-8ddc455e8b8c4d8196ada293f5029ae113d54b5a.tar.xz pttbbs-8ddc455e8b8c4d8196ada293f5029ae113d54b5a.tar.zst pttbbs-8ddc455e8b8c4d8196ada293f5029ae113d54b5a.zip |
merge 1667:1672 from trunk
git-svn-id: http://opensvn.csie.org/pttbbs/branches/outtacache@1673 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/bbs.c | 9 |
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; } |