summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-10-30 23:01:18 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-10-30 23:01:18 +0800
commit2ae8f418f1f6249fec899be1ba493210c785f8bb (patch)
tree8b0e2066e1bac1ef8a11516e378e34149f69f083
parenta54667b33a721bec34e51c39c769fc8fd1726c72 (diff)
downloadpttbbs-2ae8f418f1f6249fec899be1ba493210c785f8bb.tar
pttbbs-2ae8f418f1f6249fec899be1ba493210c785f8bb.tar.gz
pttbbs-2ae8f418f1f6249fec899be1ba493210c785f8bb.tar.bz2
pttbbs-2ae8f418f1f6249fec899be1ba493210c785f8bb.tar.lz
pttbbs-2ae8f418f1f6249fec899be1ba493210c785f8bb.tar.xz
pttbbs-2ae8f418f1f6249fec899be1ba493210c785f8bb.tar.zst
pttbbs-2ae8f418f1f6249fec899be1ba493210c785f8bb.zip
* fix compliation error on no-assess mode
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5014 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--pttbbs/mbbsd/bbs.c4
1 files changed, 4 insertions, 0 deletions
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);