summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data/rbot/plugins/bans.rb4
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