diff options
author | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-04-21 13:09:41 +0800 |
---|---|---|
committer | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-04-21 13:09:41 +0800 |
commit | a6162aedbc643514dccac3058888a81b63ea237d (patch) | |
tree | 8a0613191ea90d9103aa106cc10fce1acd315159 | |
parent | fc6ddbeabfc2f4cc53ea08b5095cb217a270f3bc (diff) | |
download | pttbbs-a6162aedbc643514dccac3058888a81b63ea237d.tar pttbbs-a6162aedbc643514dccac3058888a81b63ea237d.tar.gz pttbbs-a6162aedbc643514dccac3058888a81b63ea237d.tar.bz2 pttbbs-a6162aedbc643514dccac3058888a81b63ea237d.tar.lz pttbbs-a6162aedbc643514dccac3058888a81b63ea237d.tar.xz pttbbs-a6162aedbc643514dccac3058888a81b63ea237d.tar.zst pttbbs-a6162aedbc643514dccac3058888a81b63ea237d.zip |
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
-rw-r--r-- | mbbsd/cal.c | 5 |
1 files changed, 2 insertions, 3 deletions
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) |