summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-10-14 23:55:57 +0800
committervictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-10-14 23:55:57 +0800
commita80eb78a018c5d0746d734971b7f34b0e9dc7b4e (patch)
tree94ee3a50bcc3df0a48d1493c7873d4a3067ce250
parent95f00df77f4f5ed64b2c573237223fe734f7ec9e (diff)
downloadpttbbs-a80eb78a018c5d0746d734971b7f34b0e9dc7b4e.tar
pttbbs-a80eb78a018c5d0746d734971b7f34b0e9dc7b4e.tar.gz
pttbbs-a80eb78a018c5d0746d734971b7f34b0e9dc7b4e.tar.bz2
pttbbs-a80eb78a018c5d0746d734971b7f34b0e9dc7b4e.tar.lz
pttbbs-a80eb78a018c5d0746d734971b7f34b0e9dc7b4e.tar.xz
pttbbs-a80eb78a018c5d0746d734971b7f34b0e9dc7b4e.tar.zst
pttbbs-a80eb78a018c5d0746d734971b7f34b0e9dc7b4e.zip
do not increase badpost, when delete one's own article
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1245 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/bbs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c
index fa78a7d6..04114672 100644
--- a/mbbsd/bbs.c
+++ b/mbbsd/bbs.c
@@ -1725,7 +1725,8 @@ del_post(int ent, fileheader_t * fhdr, char *direct)
fhdr->money = hdr.money;
delete_file(genbuf, sizeof(fileheader_t), num, cmpfilename);
}
- inc_badpost(searchuser(fhdr->owner));
+ if (not_owned)
+ inc_badpost(searchuser(fhdr->owner));
cancelpost(fhdr, not_owned);
setbtotal(currbid);