summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-08-06 21:53:46 +0200
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-08-06 22:06:10 +0200
commit22e6cefa54de681b131ecb97fc9383ff5e990dfe (patch)
tree6d40aac9a70081721102977bd82dd583b222939b /data
parent2bd4a7ed4ba5ab7c3c522c4d8061c1ce35bdc336 (diff)
nickserv plugin: regexp tweaks and case insensitivity
Diffstat (limited to 'data')
-rw-r--r--data/rbot/plugins/nickserv.rb8
1 files 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