diff options
author | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-11-02 01:53:24 +0800 |
---|---|---|
committer | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-11-02 01:53:24 +0800 |
commit | 1be57e7fccdabfe42518ecd9ec7f23c7bf0827f7 (patch) | |
tree | ca3157d9e9a0254c0b884875b3b0fc1bc4bc2c04 /mbbsd | |
parent | 1f3a08dfc572f480318e594313c581fc4efb445f (diff) | |
download | pttbbs-1be57e7fccdabfe42518ecd9ec7f23c7bf0827f7.tar pttbbs-1be57e7fccdabfe42518ecd9ec7f23c7bf0827f7.tar.gz pttbbs-1be57e7fccdabfe42518ecd9ec7f23c7bf0827f7.tar.bz2 pttbbs-1be57e7fccdabfe42518ecd9ec7f23c7bf0827f7.tar.lz pttbbs-1be57e7fccdabfe42518ecd9ec7f23c7bf0827f7.tar.xz pttbbs-1be57e7fccdabfe42518ecd9ec7f23c7bf0827f7.tar.zst pttbbs-1be57e7fccdabfe42518ecd9ec7f23c7bf0827f7.zip |
dont dec badpost of a non-exist author
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1287 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/bbs.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c index 80a012c8..4a2fb231 100644 --- a/mbbsd/bbs.c +++ b/mbbsd/bbs.c @@ -1728,10 +1728,10 @@ del_post(int ent, fileheader_t * fhdr, char *direct) if (genbuf[0] == 'y') { strlcpy(currfile, fhdr->filename, sizeof(currfile)); if (!delete_file(direct, sizeof(fileheader_t), ent, cmpfilename)) { + int num; if (currmode & MODE_SELECT) { /* rocker.011018: 利用reference減低loading */ fileheader_t hdr; - int num; num = fhdr->money & ~FHR_REFERENCE; setbdir(genbuf, currboard); @@ -1749,11 +1749,12 @@ del_post(int ent, fileheader_t * fhdr, char *direct) cancelpost(fhdr, not_owned, newpath); #ifdef ASSESS - if (not_owned && currmode & MODE_DIGEST && is_BM(cuser.userid)) + num = searchuser(fhdr->owner); + if (not_owned && tmp > 0 && currmode & MODE_DIGEST && is_BM(cuser.userid)) { getdata(1, 40, "惡劣文章?(y/N)", genbuf, 3, LCECHO); if(genbuf[0]=='y') { - if (!(inc_badpost(searchuser(fhdr->owner), 1) % 10)){ + if (!(inc_badpost(num, 1) % 10)){ post_violatelaw(xuser.userid, "Ptt 系統警察", "劣文累計十篇", "罰單一張"); mail_violatelaw(xuser.userid, "Ptt 系統警察", "劣文累計十篇", "罰單一張"); xuser.userlevel |= PERM_VIOLATELAW; |