]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
Fix a problem introduced with the new quote saving procedure
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Tue, 18 Jul 2006 22:16:57 +0000 (22:16 +0000)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Tue, 18 Jul 2006 22:16:57 +0000 (22:16 +0000)
data/rbot/plugins/quotes.rb

index e08d8f9ac4ec83b61c368614eb88852cdd119063..b795af531619e12e67e1d9839bc2afbd2315cf25 100644 (file)
@@ -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|