From 1f6c13c75a33185bc9ce158cf2b448c6cdd6b8d3 Mon Sep 17 00:00:00 2001 From: in2 Date: Fri, 25 Feb 2005 13:56:17 +0000 Subject: 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 --- mbbsd/bbs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mbbsd') 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")) { -- cgit v1.2.3