From 70b4f887a4fdab8dc4a89029bb841a0eb103ffef Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Thu, 26 Jun 2008 19:18:06 +0200 Subject: bans plugin: fix bans rm badword :regexp --- data/rbot/plugins/bans.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'data/rbot/plugins') 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 -- cgit v1.2.3