summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-06-24 17:30:04 +0200
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-06-24 17:39:40 +0200
commitff37e0e505811e14a203d8bf9213e8a5d0343acc (patch)
tree3c2408cd6c1a612f72ee0538c4d69e10f339feb1 /data
parent46497c5f135079cb26dd9b5ef62e4829f3c49f69 (diff)
bans plugin: badword checks on plain message
Diffstat (limited to 'data')
-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}"