summaryrefslogtreecommitdiffstats
path: root/mbbsd/bbs.c
diff options
context:
space:
mode:
authorvictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-10-27 09:35:04 +0800
committervictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-10-27 09:35:04 +0800
commit95c901b5e0ce59134b89bcc31dc52043e0bdafc3 (patch)
treed631eb450271ccf9f32ce46cd7e268a7dc790e1b /mbbsd/bbs.c
parentefb64bb91a13ea9f7551d8b3ae66620516e086ff (diff)
downloadpttbbs-95c901b5e0ce59134b89bcc31dc52043e0bdafc3.tar
pttbbs-95c901b5e0ce59134b89bcc31dc52043e0bdafc3.tar.gz
pttbbs-95c901b5e0ce59134b89bcc31dc52043e0bdafc3.tar.bz2
pttbbs-95c901b5e0ce59134b89bcc31dc52043e0bdafc3.tar.lz
pttbbs-95c901b5e0ce59134b89bcc31dc52043e0bdafc3.tar.xz
pttbbs-95c901b5e0ce59134b89bcc31dc52043e0bdafc3.tar.zst
pttbbs-95c901b5e0ce59134b89bcc31dc52043e0bdafc3.zip
complete assess
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1264 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/bbs.c')
-rw-r--r--mbbsd/bbs.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c
index eb4c627d..478c7a37 100644
--- a/mbbsd/bbs.c
+++ b/mbbsd/bbs.c
@@ -1602,10 +1602,12 @@ mark_post(int ent, fileheader_t * fhdr, char *direct)
fhdr->filemode ^= FILE_MARKED;
- if (fhdr->filemode)
- inc_goodpost(searchuser(fhdr->owner), fhdr->recommend);
- else
- inc_badpost(searchuser(fhdr->owner), fhdr->recommend);
+ if (!(fhdr->filemode & FILE_BID)){
+ if (fhdr->filemode & FILE_MARKED)
+ inc_goodpost(searchuser(fhdr->owner), fhdr->recommend / 10);
+ else
+ inc_goodpost(searchuser(fhdr->owner), -1 * (fhdr->recommend / 10));
+ }
substitute_record(direct, fhdr, sizeof(*fhdr), ent);
substitute_check(fhdr);