From 7d71cd7b5382ae519118148fa6deed1a58c0bd2d Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Tue, 18 Jul 2006 22:16:57 +0000 Subject: Fix a problem introduced with the new quote saving procedure --- data/rbot/plugins/quotes.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/data/rbot/plugins/quotes.rb b/data/rbot/plugins/quotes.rb index e08d8f9a..b795af53 100644 --- a/data/rbot/plugins/quotes.rb +++ b/data/rbot/plugins/quotes.rb @@ -7,6 +7,7 @@ class QuotePlugin < Plugin super @lists = Hash.new Dir["#{@bot.botclass}/quotes/*"].each {|f| + next if File.directory?(f) channel = File.basename(f) @lists[channel] = Array.new if(!@lists.has_key?(channel)) IO.foreach(f) {|line| -- cgit v1.2.3