From 7b84b651c600954696bd48fd4a7dcd3be3231b3d Mon Sep 17 00:00:00 2001 From: ptt Date: Sat, 6 Dec 2003 20:57:12 +0000 Subject: git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1402 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/bbs.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c index 7b7daa28..b01ae39e 100644 --- a/mbbsd/bbs.c +++ b/mbbsd/bbs.c @@ -1836,11 +1836,11 @@ del_post(int ent, fileheader_t * fhdr, char *direct) } cancelpost(fhdr, not_owned, newpath); -#ifdef ASSESS if(fhdr->filemode & FILE_ANONYMOUS) - num = fhdr->money; + num = getuser(fhdr->money); else num = searchuser(fhdr->owner); +#ifdef ASSESS if (not_owned && num > 0 && !(currmode & MODE_DIGEST)) { getdata(1, 40, "惡劣文章?(y/N)", genbuf, 3, LCECHO); @@ -1850,8 +1850,8 @@ del_post(int ent, fileheader_t * fhdr, char *direct) mail_violatelaw(xuser.userid, "Ptt 系統警察", "劣文累計十篇", "罰單一張"); xuser.userlevel |= PERM_VIOLATELAW; } - sprintf(genbuf,"劣文退回:%40.40s", fhdr->title); - mail_id(fhdr->owner, genbuf, newpath, cuser.userid); + sprintf(genbuf,"劣文退回:%-40.40s", fhdr->title); + mail_id(xuser.userid, genbuf, newpath, cuser.userid); } } #endif @@ -1860,7 +1860,7 @@ del_post(int ent, fileheader_t * fhdr, char *direct) if (fhdr->money < 0) fhdr->money = 0; if (not_owned && strcmp(currboard, "Test")) { - deumoney(searchuser(fhdr->owner), -fhdr->money); + deumoney(num, -fhdr->money); } if (!not_owned && strcmp(currboard, "Test")) { if (cuser.numposts) -- cgit v1.2.3