diff options
Diffstat (limited to 'mbbsd/cal.c')
-rw-r--r-- | mbbsd/cal.c | 4 |
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(); |