summaryrefslogtreecommitdiffstats
path: root/mbbsd/bbs.c
diff options
context:
space:
mode:
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);