summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-12-07 04:57:12 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-12-07 04:57:12 +0800
commit7b84b651c600954696bd48fd4a7dcd3be3231b3d (patch)
treebe39af65f8943efbf2cc4d71956864d4452c381f /mbbsd
parentc527ce09c31f65d7ca70c3f5a31b4eec194cbe57 (diff)
downloadpttbbs-7b84b651c600954696bd48fd4a7dcd3be3231b3d.tar
pttbbs-7b84b651c600954696bd48fd4a7dcd3be3231b3d.tar.gz
pttbbs-7b84b651c600954696bd48fd4a7dcd3be3231b3d.tar.bz2
pttbbs-7b84b651c600954696bd48fd4a7dcd3be3231b3d.tar.lz
pttbbs-7b84b651c600954696bd48fd4a7dcd3be3231b3d.tar.xz
pttbbs-7b84b651c600954696bd48fd4a7dcd3be3231b3d.tar.zst
pttbbs-7b84b651c600954696bd48fd4a7dcd3be3231b3d.zip
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1402 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/bbs.c10
1 files 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)