From: Giuseppe Bilotta Date: Tue, 30 Jan 2007 14:39:34 +0000 (+0000) Subject: case fixes in bans X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;ds=inline;h=4d6afaede461534ed109abe691ac6485d82ccba3;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git case fixes in bans --- 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]