summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mbbsd/bbs.c12
-rw-r--r--sample/pttbbs.conf3
2 files changed, 9 insertions, 6 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c
index e236fb13..49490e42 100644
--- a/mbbsd/bbs.c
+++ b/mbbsd/bbs.c
@@ -3252,9 +3252,9 @@ good_post(int ent, fileheader_t * fhdr, const char *direct)
if (fhdr->filemode & FILE_DIGEST) {
fhdr->filemode = (fhdr->filemode & ~FILE_DIGEST);
if (!strcmp(currboard, GLOBAL_NOTE) ||
- // 2007/12/05: what is 'Artdsn' here?
- // disable it unless someone need it...
- // !strcmp(currboard, "Artdsn") ||
+#ifdef GLOBAL_ARTDSN
+ !strcmp(currboard, GLOBAL_ARTDSN) ||
+#endif
!strcmp(currboard, GLOBAL_BUGREPORT) ||
!strcmp(currboard, GLOBAL_LAW)
)
@@ -3298,9 +3298,9 @@ good_post(int ent, fileheader_t * fhdr, const char *direct)
fhdr->filemode = (fhdr->filemode & ~FILE_MARKED) | FILE_DIGEST;
if (!strcmp(currboard, GLOBAL_NOTE) ||
- // 2007/12/05: what is 'Artdsn' here?
- // disable it unless someone need it...
- // !strcmp(currboard, "Artdsn") ||
+#ifdef GLOBAL_ARTDSN
+ !strcmp(currboard, GLOBAL_ARTDSN) ||
+#endif
!strcmp(currboard, GLOBAL_BUGREPORT) ||
!strcmp(currboard, GLOBAL_LAW)
)
diff --git a/sample/pttbbs.conf b/sample/pttbbs.conf
index a086184c..2e6031d4 100644
--- a/sample/pttbbs.conf
+++ b/sample/pttbbs.conf
@@ -46,6 +46,9 @@
/* *** 以下為定義時會多出功能的板名 *** */
+/* 若定義, 提供美工特別用板 */
+#define GLOBAL_ARTDSN "Artdsn"
+
/* 若定義, 則以此為版名提供全站文摘 */
#define GLOBAL_DIGEST BBSMNAME "Digest"