summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2011-07-19 10:09:47 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2011-07-19 10:09:47 +0800
commit5e6b66e34c5bcdb1c135fb0e1fbd47e17d9c5ee9 (patch)
tree3c0444dfd8c5e9e390553b0bf0aa6f147a329c0f
parent18bf93bafe8e2dd28fe0b9900110f33cbdc84cab (diff)
downloadpttbbs-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.c8
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;