#!/usr/bin/env ruby # $Revision: 1.3 $ # $Date: 2003/12/04 22:18:34 $ # $Author: jefus $ def Commands.do_commands(user, args) commands = $system.commands.list.collect {|command| command.name if user.access >= command.access }.compact user.puts("Commands: #{commands.join(", ")}") end