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 | 2df2e48d5ec19e332a9e13798a03c50077080cba (patch) | |
tree | 687a97c3b8327dcb6a4bd8f1bb6cb9a209946750 /mbbsd | |
parent | e2e4bfa7a26b8b90d03b1e1167d24096e7ff9ea0 (diff) | |
download | pttbbs-2df2e48d5ec19e332a9e13798a03c50077080cba.tar pttbbs-2df2e48d5ec19e332a9e13798a03c50077080cba.tar.gz pttbbs-2df2e48d5ec19e332a9e13798a03c50077080cba.tar.bz2 pttbbs-2df2e48d5ec19e332a9e13798a03c50077080cba.tar.lz pttbbs-2df2e48d5ec19e332a9e13798a03c50077080cba.tar.xz pttbbs-2df2e48d5ec19e332a9e13798a03c50077080cba.tar.zst pttbbs-2df2e48d5ec19e332a9e13798a03c50077080cba.zip |
* more logs for exmailbox
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4844 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/cal.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/mbbsd/cal.c b/mbbsd/cal.c index c920aeb1..e4d1d492 100644 --- a/mbbsd/cal.c +++ b/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("�e�q�̦h�W�[ %d �ʡA����A�R�F�C", 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, "�ʶR�H�c"); inmailbox(n); + log_filef("log/exmailbox.log", LOG_CREAT, + "%-13s %d+%d->%d %s\n", cuser.userid, + oldm, n, cuser.exmailbox, Cdatelite(&now)); + vmsgf("�w�ʶR�H�c�C�s�e�q�W��: %d", cuser.exmailbox); return 0; } |