summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data/rbot/plugins/bans.rb2
1 files changed, 1 insertions, 1 deletions
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}"