From 8c0cc3c338c23e28ccbb20ac586f65a33d29f792 Mon Sep 17 00:00:00 2001 From: piaip Date: Sun, 30 Mar 2008 14:01:44 +0000 Subject: - log registration data when killing user by admins git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4048 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/user.c | 10 ++++++---- 1 file 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(); -- cgit v1.2.3