summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorscw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-02-12 21:32:01 +0800
committerscw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-02-12 21:32:01 +0800
commitfa574c1beb97aca4e50fddf40a9a435344d367b3 (patch)
tree666e86a87c080a3fcd3f8f3356962b4fd42d9fd5 /mbbsd
parent0482f7a736cf7d13ace4d8222efae333a3cfd61f (diff)
downloadpttbbs-fa574c1beb97aca4e50fddf40a9a435344d367b3.tar
pttbbs-fa574c1beb97aca4e50fddf40a9a435344d367b3.tar.gz
pttbbs-fa574c1beb97aca4e50fddf40a9a435344d367b3.tar.bz2
pttbbs-fa574c1beb97aca4e50fddf40a9a435344d367b3.tar.lz
pttbbs-fa574c1beb97aca4e50fddf40a9a435344d367b3.tar.xz
pttbbs-fa574c1beb97aca4e50fddf40a9a435344d367b3.tar.zst
pttbbs-fa574c1beb97aca4e50fddf40a9a435344d367b3.zip
Define string macro GLOBAL_DIGEST in pttbbs.conf to set the digest board name.
Or undifine it to remove this feature. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1532 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/bbs.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c
index 07ba91e1..250fa986 100644
--- a/mbbsd/bbs.c
+++ b/mbbsd/bbs.c
@@ -2332,11 +2332,13 @@ good_post(int ent, fileheader_t * fhdr, char *direct)
strcpy(ptr, fn_mandex);
append_record(buf, &digest, sizeof(digest));
+#ifdef GLOBAL_DIGEST
if(!(getbcache(currbid)->brdattr & BRD_HIDE)) {
getdata(1, 0, "好文值得出版到全站文摘?(N/y)", genbuf2, 3, LCECHO);
if(genbuf2[0] == 'y')
- do_crosspost("PttDigest", &digest, genbuf);
+ do_crosspost(GLOBAL_DIGEST, &digest, genbuf);
}
+#endif
fhdr->filemode = (fhdr->filemode & ~FILE_MARKED) | FILE_DIGEST;
if (!strcmp(currboard, "Note") || !strcmp(currboard, "PttBug") ||