searchquote (QuotePlugin)

    # File rbot/plugins/quotes.rb, line 74
      def searchquote(source, channel, regexp)
        return nil unless(@lists.has_key?(channel))
        return nil unless(@lists[channel].length > 0)
        matches = @lists[channel].compact.find_all {|a| a.quote =~ /#{regexp}/ }
        if(matches.length > 0)
           return matches[rand matches.length], @lists[channel].length - 1
        else
          return nil
        end
      end