From 2ae8f418f1f6249fec899be1ba493210c785f8bb Mon Sep 17 00:00:00 2001 From: piaip Date: Fri, 30 Oct 2009 15:01:18 +0000 Subject: * fix compliation error on no-assess mode git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5014 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- pttbbs/mbbsd/bbs.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pttbbs/mbbsd/bbs.c b/pttbbs/mbbsd/bbs.c index 8848f4a4..f931f9b4 100644 --- a/pttbbs/mbbsd/bbs.c +++ b/pttbbs/mbbsd/bbs.c @@ -3007,6 +3007,9 @@ del_post(int ent, fileheader_t * fhdr, char *direct) del_ok = (cancelpost(fhdr, not_owned, newpath) == 0) ? 1 : 0; deleteCrossPost(fhdr, bp->brdname); +#ifdef ASSESS + // badpost assignment + // case one, self-owned, invalid author, or digest mode - should not give bad posts if (!not_owned || tusernum <= 0 || (currmode & MODE_DIGEST) ) { @@ -3036,6 +3039,7 @@ del_post(int ent, fileheader_t * fhdr, char *direct) assign_badpost(getuserid(tusernum), fhdr, newpath, NULL); } } +#endif // ASSESS setbtotal(currbid); -- cgit v1.2.3