diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-09-12 22:31:15 +0000 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-09-12 22:31:15 +0000 |
commit | 6f5528a63b44e610a3d25d7fe583399163d7d2da (patch) | |
tree | 0db7c1642d40bd68a85338f4cdbb87a03f5e7747 /data/rbot/plugins/translator.rb | |
parent | 8efdfd2651a720e0dc1681e716d0a23b0429e4fd (diff) |
namespaces: move rbot-specific classes and modules from Irc::* to Irc::Bot::*
Diffstat (limited to 'data/rbot/plugins/translator.rb')
-rw-r--r-- | data/rbot/plugins/translator.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/data/rbot/plugins/translator.rb b/data/rbot/plugins/translator.rb index 299d6a0e..6a842754 100644 --- a/data/rbot/plugins/translator.rb +++ b/data/rbot/plugins/translator.rb @@ -252,7 +252,7 @@ class WorldlingoTranslator < Translator end class TranslatorPlugin < Plugin - BotConfig.register BotConfigIntegerValue.new('translator.timeout', + Config.register Config::IntegerValue.new('translator.timeout', :default => 30, :validate => Proc.new{|v| v > 0}, :desc => _("Number of seconds to wait for the translation service before timeout")) @@ -279,7 +279,7 @@ class TranslatorPlugin < Plugin end end - BotConfig.register BotConfigArrayValue.new('translator.default_list', + Config.register Config::ArrayValue.new('translator.default_list', :default => TRANSLATORS.keys, :validate => Proc.new {|l| l.all? {|t| TRANSLATORS.has_key?(t)}}, :desc => _("List of translators to try in order when translator name not specified"), |