From ff37e0e505811e14a203d8bf9213e8a5d0343acc Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Tue, 24 Jun 2008 17:30:04 +0200 Subject: [PATCH] bans plugin: badword checks on plain message --- 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 3818ce22..4e35d996 100644 --- a/data/rbot/plugins/bans.rb +++ b/data/rbot/plugins/bans.rb @@ -143,7 +143,7 @@ class BansPlugin < Plugin @registry[:badwords].each { |badword| next unless ['all', m.target.downcase].include?(badword.channel) - next unless badword.regexp.match(m.message) + 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}" -- 2.32.0.93.g670b81a890