summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorscw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2006-04-24 00:41:32 +0800
committerscw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2006-04-24 00:41:32 +0800
commit156642a746925243b4f4ec24ef0c982e78dad147 (patch)
tree46d229287037c67c630303259fc063e5799fe71c /mbbsd
parent2b74cb61c5050c5f95a3a40677787c9b71945878 (diff)
downloadpttbbs-156642a746925243b4f4ec24ef0c982e78dad147.tar
pttbbs-156642a746925243b4f4ec24ef0c982e78dad147.tar.gz
pttbbs-156642a746925243b4f4ec24ef0c982e78dad147.tar.bz2
pttbbs-156642a746925243b4f4ec24ef0c982e78dad147.tar.lz
pttbbs-156642a746925243b4f4ec24ef0c982e78dad147.tar.xz
pttbbs-156642a746925243b4f4ec24ef0c982e78dad147.tar.zst
pttbbs-156642a746925243b4f4ec24ef0c982e78dad147.zip
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
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/bbs.c8
1 files changed, 6 insertions, 2 deletions
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) */
}