From bd379500e396078f3f8ebe443e1fa1f28443b2bf Mon Sep 17 00:00:00 2001 From: piaip Date: Mon, 24 Mar 2008 16:24:36 +0000 Subject: - change kill_user log from VIOLATION to SECURITY. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4018 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/user.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'mbbsd') diff --git a/mbbsd/user.c b/mbbsd/user.c index a83004b1..4893d406 100644 --- a/mbbsd/user.c +++ b/mbbsd/user.c @@ -943,8 +943,12 @@ uinfo_query(userec_t *u, int adminmode, int unum) tokill = 1; { char reason[STRLEN]; + char title[STRLEN], msg[PATHLEN]; while (!getdata(b_lines-3, 0, "請輸入理由以示負責:", reason, 50, DOECHO)); - post_violatelaw(x.userid, cuser.userid, reason, "砍除 ID"); + 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); + post_msg(GLOBAL_SECURITY, title, msg, "[系統安全局]"); } break; -- cgit v1.2.3