X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=lib%2Frbot%2Fcore%2Futils%2Fwordlist.rb;h=81d7d775ef329f4058531cdb8444365a2d87a0a4;hb=bf9734ff89a238c5a63015b68eabd8d0ef9d1308;hp=4e624f9b4e80b9d0aa64a00855ee4c72c5913894;hpb=91a9024e21ec8b429605a036b5c9193442a580e3;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git diff --git a/lib/rbot/core/utils/wordlist.rb b/lib/rbot/core/utils/wordlist.rb index 4e624f9b..81d7d775 100755 --- a/lib/rbot/core/utils/wordlist.rb +++ b/lib/rbot/core/utils/wordlist.rb @@ -14,10 +14,10 @@ class Wordlist @@wordlist_base ||= Utils.bot.path 'wordlists' end - def self.get(path, options={}) + def self.get(where, options={}) opts = { :spaces => false }.merge(options) - wordlist_path = File.join(wordlist_base, path) + wordlist_path = File.join(wordlist_base, where) raise "wordlist not found: #{wordlist_path}" unless File.exist?(wordlist_path) # Location is a directory -> combine all lists beneath it