From c900993c6293d1fc07cf1bfc237f274f91bc127d Mon Sep 17 00:00:00 2001 From: dmitry kim Date: Thu, 26 Jun 2008 21:00:07 +0400 Subject: [PATCH] * plugins/bans: show the bad word message in channel before the (kick)ban --- data/rbot/plugins/bans.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/rbot/plugins/bans.rb b/data/rbot/plugins/bans.rb index b25cb50b..9fbea48b 100644 --- a/data/rbot/plugins/bans.rb +++ b/data/rbot/plugins/bans.rb @@ -145,8 +145,8 @@ class BansPlugin < Plugin next unless ['all', m.target.downcase].include?(badword.channel) next unless badword.regexp.match(m.plainmessage) - do_cmd(badword.action.to_sym, m.source.nick, m.target, badword.timer, badword.reason) m.reply "bad word detected! #{badword.action} for #{badword.timer} because: #{badword.reason}" + do_cmd(badword.action.to_sym, m.source.nick, m.target, badword.timer, badword.reason) return } end -- 2.39.5