summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2006-07-18 22:16:57 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2006-07-18 22:16:57 +0000
commit7d71cd7b5382ae519118148fa6deed1a58c0bd2d (patch)
treea105e015f36e24b7497b976455e8fc330e6503a6
parent0d7772ca24e6683f3e2c43f6d5dae709d6d7b16b (diff)
Fix a problem introduced with the new quote saving procedure
-rw-r--r--data/rbot/plugins/quotes.rb1
1 files changed, 1 insertions, 0 deletions
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|