diff options
author | Raine Virta <rane@kapsi.fi> | 2009-02-19 16:26:34 +0200 |
---|---|---|
committer | Raine Virta <rane@kapsi.fi> | 2009-02-19 16:26:34 +0200 |
commit | 783ffa4235330029d661752b1023db635b26f2b3 (patch) | |
tree | e60c7a89e7053120b33810230401f5490a3cb697 /lib/rbot/language.rb | |
parent | ff452ad1bf111025f0661274ac7fb8b2f769a293 (diff) |
remove whitespace
Diffstat (limited to 'lib/rbot/language.rb')
-rw-r--r-- | lib/rbot/language.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/rbot/language.rb b/lib/rbot/language.rb index 67114dac..cb083244 100644 --- a/lib/rbot/language.rb +++ b/lib/rbot/language.rb @@ -57,16 +57,16 @@ class Bot return 'english' end - Config.register Config::EnumValue.new('core.language', + 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 }.compact - }, + }, :on_change => Proc.new {|bot, v| bot.lang.set_language v}, :desc => "Which language file the bot should use") - + def initialize(bot, language) @bot = bot set_language language |