diff options
author | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2006-10-02 22:53:09 +0800 |
---|---|---|
committer | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2006-10-02 22:53:09 +0800 |
commit | adf219a59c85fd819da3db8a6e12ca5243379a30 (patch) | |
tree | 6db2dc083a971fcfce3fd0a3a905e42a86d7a69c /mbbsd | |
parent | 6e7f6d142078737003eaa0d9b4fb093fa8ef890a (diff) | |
download | pttbbs-adf219a59c85fd819da3db8a6e12ca5243379a30.tar pttbbs-adf219a59c85fd819da3db8a6e12ca5243379a30.tar.gz pttbbs-adf219a59c85fd819da3db8a6e12ca5243379a30.tar.bz2 pttbbs-adf219a59c85fd819da3db8a6e12ca5243379a30.tar.lz pttbbs-adf219a59c85fd819da3db8a6e12ca5243379a30.tar.xz pttbbs-adf219a59c85fd819da3db8a6e12ca5243379a30.tar.zst pttbbs-adf219a59c85fd819da3db8a6e12ca5243379a30.zip |
violations are logged twice, one anonymous
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3438 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/syspost.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/mbbsd/syspost.c b/mbbsd/syspost.c index 639d4fda..e90632cc 100644 --- a/mbbsd/syspost.c +++ b/mbbsd/syspost.c @@ -112,6 +112,13 @@ post_violatelaw(const char *crime, const char *police, const char *reason, const " " ANSI_COLOR(1;32) "%s" ANSI_RESET "因" ANSI_COLOR(1;35) "%s" ANSI_RESET "行為,\n" "違反本站站規,處以" ANSI_COLOR(1;35) "%s" ANSI_RESET ",特此公告\n", police, crime, reason, result); + post_msg("PoliceLog",title,msg,"[Ptt法院]"); + + snprintf(msg, sizeof(msg), + ANSI_COLOR(1;32) "%s" ANSI_RESET "判決:\n" + " " ANSI_COLOR(1;32) "%s" ANSI_RESET "因" ANSI_COLOR(1;35) "%s" ANSI_RESET "行為,\n" + "違反本站站規,處以" ANSI_COLOR(1;35) "%s" ANSI_RESET ",特此公告\n", + "站務警察", crime, reason, result); post_msg("ViolateLaw",title,msg,"[Ptt法院]"); } |