diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2011-07-19 10:09:47 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2011-07-19 10:09:47 +0800 |
commit | 5e6b66e34c5bcdb1c135fb0e1fbd47e17d9c5ee9 (patch) | |
tree | 3c0444dfd8c5e9e390553b0bf0aa6f147a329c0f | |
parent | 18bf93bafe8e2dd28fe0b9900110f33cbdc84cab (diff) | |
download | pttbbs-5e6b66e34c5bcdb1c135fb0e1fbd47e17d9c5ee9.tar pttbbs-5e6b66e34c5bcdb1c135fb0e1fbd47e17d9c5ee9.tar.gz pttbbs-5e6b66e34c5bcdb1c135fb0e1fbd47e17d9c5ee9.tar.bz2 pttbbs-5e6b66e34c5bcdb1c135fb0e1fbd47e17d9c5ee9.tar.lz pttbbs-5e6b66e34c5bcdb1c135fb0e1fbd47e17d9c5ee9.tar.xz pttbbs-5e6b66e34c5bcdb1c135fb0e1fbd47e17d9c5ee9.tar.zst pttbbs-5e6b66e34c5bcdb1c135fb0e1fbd47e17d9c5ee9.zip |
extend the "no credit" boards
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5372 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | pttbbs/mbbsd/bbs.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/pttbbs/mbbsd/bbs.c b/pttbbs/mbbsd/bbs.c index 1bc91e70..d0289fee 100644 --- a/pttbbs/mbbsd/bbs.c +++ b/pttbbs/mbbsd/bbs.c @@ -1232,7 +1232,13 @@ do_general(int garbage) // including: special boards (e.g. TEST, ALLPOST), bad boards, no BM boards if (!HasBasicUserPerm(PERM_LOGINOK) || IsFreeBoardName(currboard) || - (currbrdattr&BRD_BAD) || + (currbrdattr & BRD_BAD) || +#ifdef BRD_NOCREDIT + (currbrdattr & BRD_NOCREDIT) || +#endif +#ifdef USE_HIDDEN_BOARD_NOCREDIT + (currbrdattr & BRD_HIDE) || +#endif bp->BM[0] < ' ') // XXX note: BM may contain some (chinese) text that is not userid { money = 0; |