From 22e6cefa54de681b131ecb97fc9383ff5e990dfe Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Wed, 6 Aug 2008 21:53:46 +0200 Subject: nickserv plugin: regexp tweaks and case insensitivity --- data/rbot/plugins/nickserv.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/data/rbot/plugins/nickserv.rb b/data/rbot/plugins/nickserv.rb index d0a38c74..36333477 100644 --- a/data/rbot/plugins/nickserv.rb +++ b/data/rbot/plugins/nickserv.rb @@ -35,7 +35,7 @@ class NickServPlugin < Plugin :on_change => Proc.new { |bot, v| bot.plugins.delegate "set_nick_avail", v }, :desc => _("String to look for to see if the nick server is informing us that our nick is now available")) Config.register Config::StringValue.new('nickserv.identified_string', - :default => "(Password|Contrase|Mot de passe).+(acce[pt]t|r[ie]cog?n).+(identif|r[ie]cog?n)", + :default => "((Password|Contrase|Mot de passe).+(acce[pt]t|r[ie]cog?n).+)?(you|tu|vous).+(identif|r[ie]cog?n)", :requires_restart => false, :on_change => Proc.new { |bot, v| bot.plugins.delegate "set_identified_string", v }, :desc => _("String to look for to see if the nick server is informing us that we have identified successfully")) @@ -68,15 +68,15 @@ class NickServPlugin < Plugin end def set_ident_request(val) - @ident_request = Regexp.new(val) + @ident_request = Regexp.new(val, true) end def set_nick_avail(val) - @nick_avail = Regexp.new(val) + @nick_avail = Regexp.new(val, true) end def set_identified_string(val) - @identified_string = Regexp.new(val) + @identified_string = Regexp.new(val, true) end def initialize -- cgit v1.2.3