- :desc => "String to look for to see if the nick server is informing us that our nick is now available")
- BotConfig.register BotConfigBooleanValue.new('nickserv.wants_nick',
+ :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).+)?(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"))
+
+ Config.register Config::BooleanValue.new('nickserv.wants_nick',