summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2010-10-24 11:58:49 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2010-10-24 11:58:49 +0800
commitb6f62646105e4436fe7faf8e6b4abb8a0c9f512f (patch)
treeea94c8cfc37dc26d97a66fbbe103371a995f16d2
parent5509e0b3401090afc2e8bc928c39838792736dde (diff)
downloadpttbbs-b6f62646105e4436fe7faf8e6b4abb8a0c9f512f.tar
pttbbs-b6f62646105e4436fe7faf8e6b4abb8a0c9f512f.tar.gz
pttbbs-b6f62646105e4436fe7faf8e6b4abb8a0c9f512f.tar.bz2
pttbbs-b6f62646105e4436fe7faf8e6b4abb8a0c9f512f.tar.lz
pttbbs-b6f62646105e4436fe7faf8e6b4abb8a0c9f512f.tar.xz
pttbbs-b6f62646105e4436fe7faf8e6b4abb8a0c9f512f.tar.zst
pttbbs-b6f62646105e4436fe7faf8e6b4abb8a0c9f512f.zip
pwcu.post should not be decreased if money < 1
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5160 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--pttbbs/mbbsd/bbs.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/pttbbs/mbbsd/bbs.c b/pttbbs/mbbsd/bbs.c
index af045bcb..3c94ad0e 100644
--- a/pttbbs/mbbsd/bbs.c
+++ b/pttbbs/mbbsd/bbs.c
@@ -3301,7 +3301,11 @@ del_post(int ent, fileheader_t * fhdr, char *direct)
}
#endif // ASSESS
- if (not_owned)
+ if (del_fee <= 0)
+ {
+ // no need to change user record
+ }
+ else if (not_owned)
{
// not owner case
if (tusernum)