# File examples/chatserver.rb, line 257 def handleCommand( user, command, args ) case command when /quit/ disconnectUser( user, 'Quit' ) when /shutdown/ shutdown() when /who/ user.addOutput( self.wholist(user) ) else user.addOutput("Unknown command '#{command}'") end end