From a6162aedbc643514dccac3058888a81b63ea237d Mon Sep 17 00:00:00 2001 From: kcwu Date: Thu, 21 Apr 2005 05:09:41 +0000 Subject: change the default number of buying mailbox to 1 git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2705 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/cal.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'mbbsd') diff --git a/mbbsd/cal.c b/mbbsd/cal.c index 3485f99d..fd1f9b3e 100644 --- a/mbbsd/cal.c +++ b/mbbsd/cal.c @@ -296,8 +296,7 @@ p_exmail(void) { char ans[4], buf[200]; int n; -// Ptt: what is it for? -// assert(MAX_EXKEEPMAIL < (1<< (sizeof(cuser.exmailbox)*8-1) )); + if (cuser.exmailbox >= MAX_EXKEEPMAIL) { vmsg("容量最多增加 %d 封,不能再買了。", MAX_EXKEEPMAIL); return 0; @@ -305,7 +304,7 @@ p_exmail(void) snprintf(buf, sizeof(buf), "您曾增購 %d 封容量,還要再買多少?", cuser.exmailbox); - getdata_str(b_lines - 2, 0, buf, ans, sizeof(ans), LCECHO, "10"); + getdata_str(b_lines - 2, 0, buf, ans, sizeof(ans), LCECHO, "1"); n = atoi(ans); if (!ans[0] || n<=0) -- cgit v1.2.3