getquote (QuotePlugin)

    # File rbot/plugins/quotes.rb, line 35
      def getquote(source, channel, num=nil)
        return nil unless(@lists.has_key?(channel))
        return nil unless(@lists[channel].length > 0)
        if(num)
          if(@lists[channel][num])
            return @lists[channel][num], @lists[channel].length - 1
          end
        else
          # random quote
          return @lists[channel].compact[rand @lists[channel].nitems],
                                           @lists[channel].length - 1
        end
      end