diff options
author | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2006-10-01 22:10:36 +0800 |
---|---|---|
committer | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2006-10-01 22:10:36 +0800 |
commit | 57dadd6252931a315c54ab7f452521dd1927afaa (patch) | |
tree | 36ef0ebd4ef98685a9cdd8397744b05ced201b33 /mbbsd/syspost.c | |
parent | 37486bf44d579146727c168f7e793c37b6eef84d (diff) | |
download | pttbbs-57dadd6252931a315c54ab7f452521dd1927afaa.tar pttbbs-57dadd6252931a315c54ab7f452521dd1927afaa.tar.gz pttbbs-57dadd6252931a315c54ab7f452521dd1927afaa.tar.bz2 pttbbs-57dadd6252931a315c54ab7f452521dd1927afaa.tar.lz pttbbs-57dadd6252931a315c54ab7f452521dd1927afaa.tar.xz pttbbs-57dadd6252931a315c54ab7f452521dd1927afaa.tar.zst pttbbs-57dadd6252931a315c54ab7f452521dd1927afaa.zip |
request reason for police actions
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3436 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/syspost.c')
-rw-r--r-- | mbbsd/syspost.c | 6 |
1 files changed, 3 insertions, 3 deletions
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, "[系統]"); } |