diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-09-16 10:05:54 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-09-16 10:05:54 +0800 |
commit | 1b1c40ca4450d86dddda37c6e1619feee9be42d5 (patch) | |
tree | 1fb1573d24b88155bf51c5c62b5c4889915b3d06 | |
parent | 0c49827d37a393ef66141a274aeaa74ad8694c29 (diff) | |
download | pttbbs-1b1c40ca4450d86dddda37c6e1619feee9be42d5.tar pttbbs-1b1c40ca4450d86dddda37c6e1619feee9be42d5.tar.gz pttbbs-1b1c40ca4450d86dddda37c6e1619feee9be42d5.tar.bz2 pttbbs-1b1c40ca4450d86dddda37c6e1619feee9be42d5.tar.lz pttbbs-1b1c40ca4450d86dddda37c6e1619feee9be42d5.tar.xz pttbbs-1b1c40ca4450d86dddda37c6e1619feee9be42d5.tar.zst pttbbs-1b1c40ca4450d86dddda37c6e1619feee9be42d5.zip |
* more logs for exmailbox
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@4844 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | pttbbs/mbbsd/cal.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/pttbbs/mbbsd/cal.c b/pttbbs/mbbsd/cal.c index c920aeb1..e4d1d492 100644 --- a/pttbbs/mbbsd/cal.c +++ b/pttbbs/mbbsd/cal.c @@ -129,7 +129,7 @@ int p_exmail(void) { char ans[4], buf[200]; - int n; + int n, oldm; if (cuser.exmailbox >= MAX_EXKEEPMAIL) { vmsgf("容量最多增加 %d 封,不能再買了。", MAX_EXKEEPMAIL); @@ -142,6 +142,7 @@ p_exmail(void) // and people usually come this this by accident... getdata(b_lines - 2, 0, buf, ans, sizeof(ans), NUMECHO); + oldm = cuser.exmailbox; n = atoi(ans); if (!ans[0] || n<=0) return 0; @@ -159,8 +160,13 @@ p_exmail(void) n, n*1000) != 'y') return 0; + reload_money(); vice(n * 1000, "購買信箱"); inmailbox(n); + log_filef("log/exmailbox.log", LOG_CREAT, + "%-13s %d+%d->%d %s\n", cuser.userid, + oldm, n, cuser.exmailbox, Cdatelite(&now)); + vmsgf("已購買信箱。新容量上限: %d", cuser.exmailbox); return 0; } |