]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
* plugins/bans: show the bad word message in channel before the (kick)ban
authordmitry kim <jason@nichego.net>
Thu, 26 Jun 2008 17:00:07 +0000 (21:00 +0400)
committerdmitry kim <jason@nichego.net>
Thu, 26 Jun 2008 17:00:07 +0000 (21:00 +0400)
data/rbot/plugins/bans.rb

index b25cb50b95247e0686c87b4da435ff63fbc1cdb5..9fbea48be9eb5777d99bea67cdc5ce086c1a46df 100644 (file)
@@ -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