diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-01-30 14:39:34 +0000 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-01-30 14:39:34 +0000 |
commit | 4d6afaede461534ed109abe691ac6485d82ccba3 (patch) | |
tree | e18233fa3c98c1fdbe5cd7e3e0749e95bbfcd790 /data/rbot | |
parent | 72c8aadb6e251a8d956259a572261781c1a45289 (diff) |
case fixes in bans
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 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]
|