summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-11-03 23:46:16 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-11-03 23:46:16 +0800
commit3bd8bcc145b015ba1d089d7cf39017ea391ca842 (patch)
treef0a85ce9c388873646e21cf78b727e9e3e3c326e
parent04126ad019a4708ea1b5a5f739fb85aa3e86ddc8 (diff)
downloadpttbbs-3bd8bcc145b015ba1d089d7cf39017ea391ca842.tar
pttbbs-3bd8bcc145b015ba1d089d7cf39017ea391ca842.tar.gz
pttbbs-3bd8bcc145b015ba1d089d7cf39017ea391ca842.tar.bz2
pttbbs-3bd8bcc145b015ba1d089d7cf39017ea391ca842.tar.lz
pttbbs-3bd8bcc145b015ba1d089d7cf39017ea391ca842.tar.xz
pttbbs-3bd8bcc145b015ba1d089d7cf39017ea391ca842.tar.zst
pttbbs-3bd8bcc145b015ba1d089d7cf39017ea391ca842.zip
fix the bug. buy -1 mail = buy 100 mail
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2308 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/cal.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/mbbsd/cal.c b/mbbsd/cal.c
index 7096c7fa..49e61a4e 100644
--- a/mbbsd/cal.c
+++ b/mbbsd/cal.c
@@ -299,10 +299,8 @@ p_exmail()
getdata_str(b_lines - 2, 0, buf, ans, sizeof(ans), LCECHO, "10");
n = atoi(ans);
- if (!ans[0] || !n)
+ if (!ans[0] || n<0)
return 0;
- if (n < 0)
- n = 100;
if (n + cuser.exmailbox > MAX_EXKEEPMAIL)
n = MAX_EXKEEPMAIL - cuser.exmailbox;
reload_money();