summaryrefslogtreecommitdiffstats
path: root/mbbsd/bbs.c
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-02-25 21:56:17 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-02-25 21:56:17 +0800
commit1f6c13c75a33185bc9ce158cf2b448c6cdd6b8d3 (patch)
treea08b04f005fc033914b60d6c0a6a534329e27123 /mbbsd/bbs.c
parentaceea973def600f8611df77245c006e34655d258 (diff)
downloadpttbbs-1f6c13c75a33185bc9ce158cf2b448c6cdd6b8d3.tar
pttbbs-1f6c13c75a33185bc9ce158cf2b448c6cdd6b8d3.tar.gz
pttbbs-1f6c13c75a33185bc9ce158cf2b448c6cdd6b8d3.tar.bz2
pttbbs-1f6c13c75a33185bc9ce158cf2b448c6cdd6b8d3.tar.lz
pttbbs-1f6c13c75a33185bc9ce158cf2b448c6cdd6b8d3.tar.xz
pttbbs-1f6c13c75a33185bc9ce158cf2b448c6cdd6b8d3.tar.zst
pttbbs-1f6c13c75a33185bc9ce158cf2b448c6cdd6b8d3.zip
fix 'internal error' when deleting articles from other sites.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2546 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/bbs.c')
-rw-r--r--mbbsd/bbs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c
index 30ae48b6..76b9b748 100644
--- a/mbbsd/bbs.c
+++ b/mbbsd/bbs.c
@@ -1922,7 +1922,8 @@ del_post(int ent, fileheader_t * fhdr, char *direct)
setbtotal(currbid);
if (fhdr->multi.money < 0 || fhdr->filemode & FILE_ANONYMOUS)
fhdr->multi.money = 0;
- if (not_owned && strcmp(currboard, "Test")) {
+ if (not_owned && tusernum && fhdr->multi.money > 0 &&
+ strcmp(currboard, "Test")) {
deumoney(tusernum, -fhdr->multi.money);
}
if (!not_owned && strcmp(currboard, "Test")) {