diff --git a/CHANGELOG b/CHANGELOG index cf002a2..dab88e0 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -8,6 +8,7 @@ Allow configuring password and nickname regex Prevent browser from caching at all. Add external CSS setting for large stylesheets Make /me work with custom texts +Set replace of a filter used for kicking as kickmessage Version 1.20.6 - Jul. 23, 2016 Simplify ignore logic + disallow ignoring chatters with higher status diff --git a/chat.php b/chat.php index 0d7de79..bcc296b 100644 --- a/chat.php +++ b/chat.php @@ -2827,9 +2827,9 @@ function apply_filter(){ $U['message']=preg_replace("/$filter[match]/i", $filter['replace'], $U['message'], -1, $count); } if(isSet($count) && $count>0 && $filter['kick']){ - kick_chatter(array($U['nickname']), '', false); + kick_chatter(array($U['nickname']), $filter['replace'], false); setcookie(COOKIENAME, false); - send_error("$I[kicked]"); + send_error("$I[kicked]
$filter[replace]"); } } $U['message']=str_replace("\n", '
', $U['message']);