diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-03-30 22:01:44 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-03-30 22:01:44 +0800 |
commit | 8c0cc3c338c23e28ccbb20ac586f65a33d29f792 (patch) | |
tree | c8f49f1a663ca3e9c294763c6449f6b2f7fab52d /mbbsd | |
parent | 5ad69cbb2ad2c1baedd87da47a7bf0138c7e93f2 (diff) | |
download | pttbbs-8c0cc3c338c23e28ccbb20ac586f65a33d29f792.tar pttbbs-8c0cc3c338c23e28ccbb20ac586f65a33d29f792.tar.gz pttbbs-8c0cc3c338c23e28ccbb20ac586f65a33d29f792.tar.bz2 pttbbs-8c0cc3c338c23e28ccbb20ac586f65a33d29f792.tar.lz pttbbs-8c0cc3c338c23e28ccbb20ac586f65a33d29f792.tar.xz pttbbs-8c0cc3c338c23e28ccbb20ac586f65a33d29f792.tar.zst pttbbs-8c0cc3c338c23e28ccbb20ac586f65a33d29f792.zip |
- log registration data when killing user by admins
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4048 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/user.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/mbbsd/user.c b/mbbsd/user.c index 81fe9111..6ce507d7 100644 --- a/mbbsd/user.c +++ b/mbbsd/user.c @@ -945,11 +945,13 @@ uinfo_query(userec_t *u, int adminmode, int unum) tokill = 1; { char reason[STRLEN]; - char title[STRLEN], msg[PATHLEN]; + char title[STRLEN], msg[1024]; while (!getdata(b_lines-3, 0, "請輸入理由以示負責:", reason, 50, DOECHO)); snprintf(title, sizeof(title), "刪除ID: %s (站長: %s)", x.userid, cuser.userid); - snprintf(msg, sizeof(msg), "帳號 %s 由站長 %s 執行刪除,理由:\n %s\n", - x.userid, cuser.userid, reason); + snprintf(msg, sizeof(msg), "帳號 %s 由站長 %s 執行刪除,理由:\n %s\n\n" + "真實姓名:%s\n住址:%s\n認證資料:%s\nEmail:%s\n", + x.userid, cuser.userid, reason, + x.realname, x.address, x.justify, x.email); post_msg(GLOBAL_SECURITY, title, msg, "[系統安全局]"); } break; @@ -1003,7 +1005,7 @@ uinfo_query(userec_t *u, int adminmode, int unum) log_usies("SetUser", x.userid); if (money_changed) { char title[TTLEN+1]; - char msg[200]; + char msg[512]; char reason[50]; clrtobot(); clear(); |