X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=lib%2Frbot%2Fcore%2Futils%2Ffilters.rb;h=d188aa3f881e3e9c37a4f029624a4b06dcf1d1ce;hb=56e4713c5c0498838ed77a409e44fbc3251acde2;hp=463e6f383ab2037382b36298a0197f3a946f7980;hpb=d6998e9b33f57c66d8026ba6b07054cf0b6a7003;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git diff --git a/lib/rbot/core/utils/filters.rb b/lib/rbot/core/utils/filters.rb index 463e6f38..d188aa3f 100644 --- a/lib/rbot/core/utils/filters.rb +++ b/lib/rbot/core/utils/filters.rb @@ -177,10 +177,10 @@ module ::Irc def load_filters(options={}) case options[:path] when nil - file = "#{self.dirname}.rb" + us = "#{self.dirname}.rb" paths = [ - File.join(Config::datadir, 'filters', file), - @bot.path('filters', file) + File.join(Config::datadir, 'filters', us), + @bot.path('filters', us) ] when Array paths = options[:path]