diff options
author | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-10-27 09:35:04 +0800 |
---|---|---|
committer | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-10-27 09:35:04 +0800 |
commit | 95c901b5e0ce59134b89bcc31dc52043e0bdafc3 (patch) | |
tree | d631eb450271ccf9f32ce46cd7e268a7dc790e1b /mbbsd/bbs.c | |
parent | efb64bb91a13ea9f7551d8b3ae66620516e086ff (diff) | |
download | pttbbs-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.c | 10 |
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); |