diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-11-17 00:56:50 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-11-17 00:56:50 +0800 |
commit | 6107f0d65e622cc5ab2348548a24a23aaab0c934 (patch) | |
tree | 9e9eb9ab4799cf85d524d7f99079746a530b1034 | |
parent | a1e2d924f88017c50bb9f27f37285000c0ef2551 (diff) | |
download | pttbbs-6107f0d65e622cc5ab2348548a24a23aaab0c934.tar pttbbs-6107f0d65e622cc5ab2348548a24a23aaab0c934.tar.gz pttbbs-6107f0d65e622cc5ab2348548a24a23aaab0c934.tar.bz2 pttbbs-6107f0d65e622cc5ab2348548a24a23aaab0c934.tar.lz pttbbs-6107f0d65e622cc5ab2348548a24a23aaab0c934.tar.xz pttbbs-6107f0d65e622cc5ab2348548a24a23aaab0c934.tar.zst pttbbs-6107f0d65e622cc5ab2348548a24a23aaab0c934.zip |
* add ALLOW_FREE_TN_ANNOUNCE conditional control
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5027 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | pttbbs/mbbsd/bbs.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pttbbs/mbbsd/bbs.c b/pttbbs/mbbsd/bbs.c index cbc40f70..f4c2a195 100644 --- a/pttbbs/mbbsd/bbs.c +++ b/pttbbs/mbbsd/bbs.c @@ -468,12 +468,16 @@ is_tn_announce(const char *title) static int is_tn_allowed(const char *title) { +#ifdef ALLOW_FREE_TN_ANNOUNCE + return 1; +#else // TN_ANNOUNCE is prohibited for non-BMs if (currmode & MODE_BOARD) return 1; if (is_tn_announce(title)) return 0; return 1; +#endif } static void |