diff options
Diffstat (limited to 'lib/rbot/config.rb')
-rw-r--r-- | lib/rbot/config.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rbot/config.rb b/lib/rbot/config.rb index 971a413c..f021d827 100644 --- a/lib/rbot/config.rb +++ b/lib/rbot/config.rb @@ -143,7 +143,7 @@ module Irc :prompt => "Language", :key => "core.language", :type => :enum, - :items => Dir.new(File.dirname(__FILE__) + "/languages/").collect {|f| + :items => Dir.new(@bot.datadir + "/languages").collect {|f| f =~ /\.lang$/ ? f.gsub(/\.lang$/, "") : nil }.compact }, |