diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-01-02 00:37:54 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-01-02 00:37:54 +0800 |
commit | 78f43e8c18e2ad103ee3fc20490d6e29a50f9331 (patch) | |
tree | 24ec9651ae258ed04eaa2427d0c9c4f2851e4bed /mbbsd/bbs.c | |
parent | 8c49555a1861b32024b35e4a89b4b696107e3c48 (diff) | |
download | pttbbs-78f43e8c18e2ad103ee3fc20490d6e29a50f9331.tar pttbbs-78f43e8c18e2ad103ee3fc20490d6e29a50f9331.tar.gz pttbbs-78f43e8c18e2ad103ee3fc20490d6e29a50f9331.tar.bz2 pttbbs-78f43e8c18e2ad103ee3fc20490d6e29a50f9331.tar.lz pttbbs-78f43e8c18e2ad103ee3fc20490d6e29a50f9331.tar.xz pttbbs-78f43e8c18e2ad103ee3fc20490d6e29a50f9331.tar.zst pttbbs-78f43e8c18e2ad103ee3fc20490d6e29a50f9331.zip |
- make Test as macro name
- general message update and finetune
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3770 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/bbs.c')
-rw-r--r-- | mbbsd/bbs.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c index 3d381abe..66fc4316 100644 --- a/mbbsd/bbs.c +++ b/mbbsd/bbs.c @@ -668,8 +668,8 @@ do_deleteCrossPost(const fileheader_t *fh, char bname[]) else #endif delete_record(bdir, sizeof(fileheader_t), i); - unlink(file); setbtotal(bid); + unlink(file); } } @@ -1083,7 +1083,7 @@ do_general(int isbid) if (aborted > MAX_POST_MONEY) aborted = MAX_POST_MONEY; #endif - if (strcmp(currboard, "Test") && !ifuseanony && + if (strcmp(currboard, GLOBAL_TEST) && !ifuseanony && !(currbrdattr&BRD_BAD)) { prints("這是您的第 %d 篇文章。",++cuser.numposts); if(postfile.filemode&FILE_BID) @@ -1789,7 +1789,7 @@ cross_post(int ent, fileheader_t * fhdr, const char *direct) // anti-crosspost spammers: do not add numpost. #if 0 - if (strcmp(xboard, "Test") == 0) + if (strcmp(xboard, GLOBAL_TEST) == 0) outs("測試信件不列入紀錄,敬請包涵。"); else cuser.numposts++; @@ -3076,14 +3076,15 @@ del_post(int ent, fileheader_t * fhdr, char *direct) if (fhdr->multi.money < 0 || fhdr->filemode & FILE_ANONYMOUS) fhdr->multi.money = 0; if (not_owned && tusernum && fhdr->multi.money > 0 && - strcmp(currboard, "Test") && strcmp(currboard, ALLPOST)) { + strcmp(currboard, GLOBAL_TEST) && + strcmp(currboard, ALLPOST)) { deumoney(tusernum, -fhdr->multi.money); #ifdef USE_COOLDOWN if (bp->brdattr & BRD_COOLDOWN) add_cooldowntime(tusernum, 15); #endif } - if (!not_owned && strcmp(currboard, "Test") && + if (!not_owned && strcmp(currboard, GLOBAL_TEST) && strcmp(currboard, ALLPOST)) { if (cuser.numposts) cuser.numposts--; |