diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2008-06-26 19:18:06 +0200 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2008-06-26 19:18:06 +0200 |
commit | 70b4f887a4fdab8dc4a89029bb841a0eb103ffef (patch) | |
tree | 5e3b82715074118c9c1bc17004f0bb6a5e4be8b1 /data/rbot | |
parent | c900993c6293d1fc07cf1bfc237f274f91bc127d (diff) |
bans plugin: fix bans rm badword :regexp
Diffstat (limited to 'data/rbot')
-rw-r--r-- | data/rbot/plugins/bans.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/data/rbot/plugins/bans.rb b/data/rbot/plugins/bans.rb index 9fbea48b..52993106 100644 --- a/data/rbot/plugins/bans.rb +++ b/data/rbot/plugins/bans.rb @@ -298,8 +298,8 @@ class BansPlugin < Plugin badwords.each { |badword| next unless ['all', badword.channel].include?(channel) - debug "Removing #{badword.inspect}" if badword == regexp - badwords.delete(badword) if badword == regexp + debug "Removing #{badword.inspect}" if badword.regexp == regexp + badwords.delete(badword) if badword.regexp == regexp } end |