privmsg (SlashdotPlugin)

    # File rbot/plugins/slashdot.rb, line 8
      def privmsg(m)
        if m.params && m.params =~ /^search\s+(.*)\s+(\d+)$/
          search = $1
          limit = $2.to_i
          search_slashdot m, search, limit
        elsif m.params && m.params =~ /^search\s+(.*)$/
          search = $1
          search_slashdot m, search
        elsif m.params && m.params =~ /^(\d+)$/
          limit = $1.to_i
          limit = 6 if limit > 6
          slashdot m, limit
        else
          slashdot m
        end
      end