From: dmitry kim Date: Thu, 26 Jun 2008 17:00:07 +0000 (+0400) Subject: * plugins/bans: show the bad word message in channel before the (kick)ban X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=c900993c6293d1fc07cf1bfc237f274f91bc127d;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git * plugins/bans: show the bad word message in channel before the (kick)ban --- 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