From 57dadd6252931a315c54ab7f452521dd1927afaa Mon Sep 17 00:00:00 2001 From: wens Date: Sun, 1 Oct 2006 14:10:36 +0000 Subject: request reason for police actions git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3436 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/syspost.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mbbsd/syspost.c') diff --git a/mbbsd/syspost.c b/mbbsd/syspost.c index f3dde5de..639d4fda 100644 --- a/mbbsd/syspost.c +++ b/mbbsd/syspost.c @@ -130,15 +130,15 @@ post_newboard(const char *bgroup, const char *bname, const char *bms) } void -post_policelog(const char *bname, const char *atitle, const char *action, const int toggle) +post_policelog(const char *bname, const char *atitle, const char *action, const char *reason, const int toggle) { char genbuf[256], title[TTLEN+1]; snprintf(title, sizeof(title), "[%s][%s] %s by %s", action, toggle ? "開啟" : "關閉", bname, cuser.userid); snprintf(genbuf, sizeof(genbuf), - "%s (%s) %s %s 看板 %s 功\能\n%s%s\n", + "%s (%s) %s %s 看板 %s 功\能\n原因 : %s\n%s%s\n", cuser.userid, fromhost, toggle ? "開啟" : "關閉", bname, action, - atitle ? "文章標題 : " : "", atitle ? atitle : ""); + reason, atitle ? "文章標題 : " : "", atitle ? atitle : ""); post_msg("PoliceLog", title, genbuf, "[系統]"); } -- cgit v1.2.3