diff options
author | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-08-16 12:13:20 +0800 |
---|---|---|
committer | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-08-16 12:13:20 +0800 |
commit | 9fcb17f07c6830a3932d8382aaca22edee8b0341 (patch) | |
tree | f1bed7585aaef6ff5516ecec4d8a038924befe03 | |
parent | 2f6b7f7d6735ef07831dd81c6f7db7646e525493 (diff) | |
download | pttbbs-9fcb17f07c6830a3932d8382aaca22edee8b0341.tar pttbbs-9fcb17f07c6830a3932d8382aaca22edee8b0341.tar.gz pttbbs-9fcb17f07c6830a3932d8382aaca22edee8b0341.tar.bz2 pttbbs-9fcb17f07c6830a3932d8382aaca22edee8b0341.tar.lz pttbbs-9fcb17f07c6830a3932d8382aaca22edee8b0341.tar.xz pttbbs-9fcb17f07c6830a3932d8382aaca22edee8b0341.tar.zst pttbbs-9fcb17f07c6830a3932d8382aaca22edee8b0341.zip |
revert r3039, now we log after the reason
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3044 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | mbbsd/user.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/mbbsd/user.c b/mbbsd/user.c index 8695b5f9..c6f1c7e5 100644 --- a/mbbsd/user.c +++ b/mbbsd/user.c @@ -940,15 +940,11 @@ uinfo_query(userec_t *u, int adminmode, int unum) return; } else log_usies("SetUser", x.userid); - if (money_change) - setumoney(unum, x.money); - passwd_update(unum, &x); if (money_change) { char title[TTLEN+1]; char msg[200]; clrtobot(); clear(); - log_file(FN_MONEY, LOG_CREAT | LOG_VF, "%-12s 將 %-12s 的錢從 %d 改成 %d\n", cuser.userid, x.userid, money, x.money); while (!getdata(5, 0, "請輸入理由以示負責:", reason, sizeof(reason), DOECHO)); @@ -962,7 +958,9 @@ uinfo_query(userec_t *u, int adminmode, int unum) "[公安報告] 站長%s修改%s錢報告", cuser.userid, x.userid); post_msg("Security", title, msg, "[系統安全局]"); + setumoney(unum, x.money); } + passwd_update(unum, &x); } } |