summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2013-02-20 01:10:54 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2013-02-20 01:10:54 +0800
commit918266d7b8347b18449d01bec69cdc9925393699 (patch)
tree32cf147ea4c150819598711b4518aff1fe92132d
parent3317ea21a43e3756905884577bd627a8451f457e (diff)
downloadpttbbs-918266d7b8347b18449d01bec69cdc9925393699.tar
pttbbs-918266d7b8347b18449d01bec69cdc9925393699.tar.gz
pttbbs-918266d7b8347b18449d01bec69cdc9925393699.tar.bz2
pttbbs-918266d7b8347b18449d01bec69cdc9925393699.tar.lz
pttbbs-918266d7b8347b18449d01bec69cdc9925393699.tar.xz
pttbbs-918266d7b8347b18449d01bec69cdc9925393699.tar.zst
pttbbs-918266d7b8347b18449d01bec69cdc9925393699.zip
Add date time info in ban log, although I think only stupid user needs that.
#1H8ly-Ml (PttSuggest) git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5790 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--pttbbs/mbbsd/acl.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/pttbbs/mbbsd/acl.c b/pttbbs/mbbsd/acl.c
index b559da26..36e4cd0f 100644
--- a/pttbbs/mbbsd/acl.c
+++ b/pttbbs/mbbsd/acl.c
@@ -262,8 +262,10 @@ ui_ban_user_for_board(const char *uid, const char *board) {
snprintf(xtitle, sizeof(xtitle), "%s 看板禁言通知(水桶)", board);
snprintf(xmsg, sizeof(xmsg),
"%s 看板已暫時禁止您發表意見 (放入水桶名單)。\n"
+ "時間: %s (期限 %s)\n"
"原因: %s\n"
- "其它資訊請洽該看板板規與公告。\n", board, reason);
+ "其它資訊請洽該看板板規與公告。\n",
+ board, Cdatelite(&now), datebuf, reason);
mail_log2id_text(uid, xtitle, xmsg, "[系統通知]", 1);
sendalert(uid, ALERT_NEW_MAIL);
}