diff options
Diffstat (limited to 'lib/rbot/language.rb')
-rw-r--r-- | lib/rbot/language.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/rbot/language.rb b/lib/rbot/language.rb index 75885a51..64555248 100644 --- a/lib/rbot/language.rb +++ b/lib/rbot/language.rb @@ -1,11 +1,10 @@ module Irc class Language - def initialize(bot, language, file="") - @bot = bot + def initialize(language, file="") @language = language if file.empty? - file = bot.datadir + "/languages/#{@language}.lang" + file = Config::DATADIR + "/languages/#{@language}.lang" end unless(FileTest.exist?(file)) raise "no such language: #{@language} (no such file #{file})" |