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 8a8f3389..4972b41a 100644
--- a/data/rbot/plugins/bans.rb
+++ b/data/rbot/plugins/bans.rb
@@ -63,7 +63,7 @@ class BansPlugin < Plugin
next
end
bans.delete(ar)
- chan = ar[1]
+ chan = ar[1].downcase
regexp = make_badword_rx(ar[2])
badwords << BadWordAction.new(regexp, action, chan, "0s", "")
}
@@ -246,7 +246,7 @@ class BansPlugin < Plugin
end
def add_badword(m, params=nil)
- regexp, channel = make_badword_rx(params[:regexp]), params[:channel].dup
+ regexp, channel = make_badword_rx(params[:regexp]), params[:channel].downcase.dup
action, timer, reason = params[:action], params[:timer].dup, params[:reason].to_s
badwords = @registry[:badwords]