diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-03-25 00:24:36 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-03-25 00:24:36 +0800 |
commit | bd379500e396078f3f8ebe443e1fa1f28443b2bf (patch) | |
tree | ce2ef148f7d703bf2bf38d84c37e035c9d15ebb8 /mbbsd/user.c | |
parent | c9ba33181ff1695737ddd0db5b497b5e5e62e929 (diff) | |
download | pttbbs-bd379500e396078f3f8ebe443e1fa1f28443b2bf.tar pttbbs-bd379500e396078f3f8ebe443e1fa1f28443b2bf.tar.gz pttbbs-bd379500e396078f3f8ebe443e1fa1f28443b2bf.tar.bz2 pttbbs-bd379500e396078f3f8ebe443e1fa1f28443b2bf.tar.lz pttbbs-bd379500e396078f3f8ebe443e1fa1f28443b2bf.tar.xz pttbbs-bd379500e396078f3f8ebe443e1fa1f28443b2bf.tar.zst pttbbs-bd379500e396078f3f8ebe443e1fa1f28443b2bf.zip |
- change kill_user log from VIOLATION to SECURITY.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4018 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/user.c')
-rw-r--r-- | mbbsd/user.c | 6 |
1 files changed, 5 insertions, 1 deletions
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; |