summaryrefslogtreecommitdiffstats
path: root/mbbsd/bbs.c
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-10-28 22:13:40 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-10-28 22:13:40 +0800
commit8ace171c5c279b69e105a76a27f33d144a6e6db0 (patch)
tree00e06ecb1debecd55e4e1e62344bbba2bbec094c /mbbsd/bbs.c
parentfddb283f9bd5979afeec32d8f18e791e7c924695 (diff)
downloadpttbbs-8ace171c5c279b69e105a76a27f33d144a6e6db0.tar
pttbbs-8ace171c5c279b69e105a76a27f33d144a6e6db0.tar.gz
pttbbs-8ace171c5c279b69e105a76a27f33d144a6e6db0.tar.bz2
pttbbs-8ace171c5c279b69e105a76a27f33d144a6e6db0.tar.lz
pttbbs-8ace171c5c279b69e105a76a27f33d144a6e6db0.tar.xz
pttbbs-8ace171c5c279b69e105a76a27f33d144a6e6db0.tar.zst
pttbbs-8ace171c5c279b69e105a76a27f33d144a6e6db0.zip
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1270 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/bbs.c')
-rw-r--r--mbbsd/bbs.c17
1 files changed, 12 insertions, 5 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c
index 759f8379..b28524fe 100644
--- a/mbbsd/bbs.c
+++ b/mbbsd/bbs.c
@@ -679,13 +679,15 @@ do_general(int isbid)
#endif
if (strcmp(currboard, "Test") && !ifuseanony) {
prints("這是您的第 %d 篇文章。",++cuser.numposts);
- if(!(postfile.filemode&FILE_BID))
+ if(postfile.filemode&FILE_BID)
+ prints("招標文章沒有稿酬。");
+ else if(currbrdattr&BRD_BAD)
+ prints("違法改進中看板沒有稿酬。");
+ else
{
prints(" 稿酬 %d 銀。",aborted);
demoney(aborted);
}
- else
- prints("招標文章沒有稿酬。");
passwd_update(usernum, &cuser); /* post 數 */
} else
outs("測試信件不列入紀錄,敬請包涵。");
@@ -1612,7 +1614,8 @@ mark_post(int ent, fileheader_t * fhdr, char *direct)
#ifdef ASSESS
if (!(fhdr->filemode & FILE_BID)){
if (fhdr->filemode & FILE_MARKED)
- inc_goodpost(searchuser(fhdr->owner), fhdr->recommend / 10);
+ if(!(currbrdattr&BRD_BAD))
+ inc_goodpost(searchuser(fhdr->owner), fhdr->recommend / 10);
else
inc_goodpost(searchuser(fhdr->owner), -1 * (fhdr->recommend / 10));
}
@@ -1744,7 +1747,11 @@ del_post(int ent, fileheader_t * fhdr, char *direct)
}
#ifdef ASSESS
if (not_owned)
- inc_badpost(searchuser(fhdr->owner), 1);
+ {
+ getdata(1, 40, "惡劣文章?(y/N)", genbuf, 3, LCECHO);
+ if(genbuf[0]=='y')
+ inc_badpost(searchuser(fhdr->owner), 1);
+ }
#endif
cancelpost(fhdr, not_owned);