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 | |
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
-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 "�欰�A\n" "�H�ϥ������W�A�B�H" ANSI_COLOR(1;35) "%s" ANSI_RESET "�A�S�����i\n", police, crime, reason, result); + post_msg("PoliceLog",title,msg,"[Ptt�k�|]"); + + snprintf(msg, sizeof(msg), + ANSI_COLOR(1;32) "%s" ANSI_RESET "�P�M�G\n" + " " ANSI_COLOR(1;32) "%s" ANSI_RESET "�]" ANSI_COLOR(1;35) "%s" ANSI_RESET "�欰�A\n" + "�H�ϥ������W�A�B�H" ANSI_COLOR(1;35) "%s" ANSI_RESET "�A�S�����i\n", + "����ĵ��", crime, reason, result); post_msg("ViolateLaw",title,msg,"[Ptt�k�|]"); } |