From 156642a746925243b4f4ec24ef0c982e78dad147 Mon Sep 17 00:00:00 2001 From: scw Date: Sun, 23 Apr 2006 16:41:32 +0000 Subject: Update btotal of the recording board when recording bad post. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3349 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/bbs.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'mbbsd/bbs.c') diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c index 02eb00e7..9b0d736c 100644 --- a/mbbsd/bbs.c +++ b/mbbsd/bbs.c @@ -2489,6 +2489,8 @@ del_post(int ent, fileheader_t * fhdr, char *direct) if (genbuf[0]=='y') { int i; char *userid=getuserid(tusernum); + int rpt_bid; + move(b_lines - 2, 0); for (i = 0; i < SIZE; i++) prints("%d.%s ", i + 1, badpost_reason[i]); @@ -2528,7 +2530,8 @@ del_post(int ent, fileheader_t * fhdr, char *direct) mail_id(userid, genbuf, newpath, cuser.userid); #ifdef BAD_POST_RECORD - { + rpt_bid = getbnum(BAD_POST_RECORD); + if (rpt_bid > 0) { fileheader_t report_fh; char report_path[PATHLEN]; @@ -2543,7 +2546,8 @@ del_post(int ent, fileheader_t * fhdr, char *direct) setbdir(report_path, BAD_POST_RECORD); append_record(report_path, &report_fh, sizeof(report_fh)); - touchbtotal(currbid); + + touchbtotal(rpt_bid); } #endif /* defined(BAD_POST_RECORD) */ } -- cgit v1.2.3