# File rbot/plugins/quotes.rb, line 4 def initialize super @listen = true @lists = Hash.new Dir["#{@bot.botclass}/quotes/*"].each {|f| channel = File.basename(f) @lists[channel] = Array.new if(!@lists.has_key?(channel)) IO.foreach(f) {|line| if(line =~ /^(\d+) \| ([^|]+) \| (\S+) \| (.*)$/) num = $1.to_i @lists[channel][num] = Quote.new(num, $2, $3, $4) end } } end