summaryrefslogtreecommitdiff
path: root/lib/rbot/language.rb
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-09-12 22:31:15 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-09-12 22:31:15 +0000
commit6f5528a63b44e610a3d25d7fe583399163d7d2da (patch)
tree0db7c1642d40bd68a85338f4cdbb87a03f5e7747 /lib/rbot/language.rb
parent8efdfd2651a720e0dc1681e716d0a23b0429e4fd (diff)
namespaces: move rbot-specific classes and modules from Irc::* to Irc::Bot::*
Diffstat (limited to 'lib/rbot/language.rb')
-rw-r--r--lib/rbot/language.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/rbot/language.rb b/lib/rbot/language.rb
index 7cf1ceb9..3e4c77f0 100644
--- a/lib/rbot/language.rb
+++ b/lib/rbot/language.rb
@@ -8,6 +8,7 @@
# .lang file etc.
module Irc
+class Bot
class Language
# This constant hash holds the mapping
@@ -54,8 +55,8 @@ module Irc
return 'english'
end
- BotConfig.register BotConfigEnumValue.new('core.language',
- :default => Irc::Language.from_locale, :wizard => true,
+ Config.register Config::EnumValue.new('core.language',
+ :default => Irc::Bot::Language.from_locale, :wizard => true,
:values => Proc.new{|bot|
Dir.new(Config::datadir + "/languages").collect {|f|
f =~ /\.lang$/ ? f.gsub(/\.lang$/, "") : nil
@@ -141,3 +142,4 @@ module Irc
end
end
+end