diff options
author | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-10-29 08:56:19 +0800 |
---|---|---|
committer | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-10-29 08:56:19 +0800 |
commit | 93786f2c209e16cbf70e1bfc067172696ec7ab15 (patch) | |
tree | 99ce8a8be20cf2b439c5d08a6bf5326a345702d0 /mbbsd/bbs.c | |
parent | f8af0fe1f0f0b5b07d5cb8124765f78e19ce90d6 (diff) | |
download | pttbbs-93786f2c209e16cbf70e1bfc067172696ec7ab15.tar pttbbs-93786f2c209e16cbf70e1bfc067172696ec7ab15.tar.gz pttbbs-93786f2c209e16cbf70e1bfc067172696ec7ab15.tar.bz2 pttbbs-93786f2c209e16cbf70e1bfc067172696ec7ab15.tar.lz pttbbs-93786f2c209e16cbf70e1bfc067172696ec7ab15.tar.xz pttbbs-93786f2c209e16cbf70e1bfc067172696ec7ab15.tar.zst pttbbs-93786f2c209e16cbf70e1bfc067172696ec7ab15.zip |
fix assess bug
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1273 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/bbs.c')
-rw-r--r-- | mbbsd/bbs.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c index f599e735..6ebbe75c 100644 --- a/mbbsd/bbs.c +++ b/mbbsd/bbs.c @@ -1613,11 +1613,10 @@ mark_post(int ent, fileheader_t * fhdr, char *direct) #ifdef ASSESS if (!(fhdr->filemode & FILE_BID)){ - if (fhdr->filemode & FILE_MARKED) - { - if(!(currbrdattr&BRD_BAD)) - inc_goodpost(searchuser(fhdr->owner), fhdr->recommend / 10); - } + if (fhdr->filemode & FILE_MARKED) { + if(!(currbrdattr&BRD_BAD)) + inc_goodpost(searchuser(fhdr->owner), fhdr->recommend / 10); + } else inc_goodpost(searchuser(fhdr->owner), -1 * (fhdr->recommend / 10)); } @@ -1750,7 +1749,7 @@ del_post(int ent, fileheader_t * fhdr, char *direct) cancelpost(fhdr, not_owned, newpath); #ifdef ASSESS - if (not_owned) + if (not_owned && currmode & MODE_DIGEST && is_BM(cuser.userid)) { getdata(1, 40, "´c¦H¤å³¹?(y/N)", genbuf, 3, LCECHO); if(genbuf[0]=='y') |