anchor.diff:  	  ### environment, returning the new filter object if we find
   	  ### it. Catch any problems as exceptions, and turn them into
   	  ### error messages for output.
  -	  begin
  -		  env = MUES::ServerFunctions::getEnvironment( envName ) or
  -			  raise CommandError, "No such environment '#{envName}'."
  -		  role = env.getAvailableRoles( context.user ).find {|role|
  -			  role.name == roleName
  -		  }
  -		  raise CommandError, "Role '#{roleName}' is not currently available to you." unless
  -			  role.is_a?( MUES::Role )
  -
  -		  results << OutputEvent.new( "Connecting..." )
  -		  results << env.getParticipantProxy( context.user, role )
  -		  results << OutputEvent.new( "connected.\n\n" )
  -	  rescue CommandError, SecurityViolation => e
  -		  results << OutputEvent.new( e.message )
  -	  end
  +	  env = MUES::ServerFunctions::getEnvironmentByName( envName ) or
  +		  raise CommandError, "No such environment '#{envName}'."
  +	  role = env.getAvailableRoles( context.user ).find {|role|
  +		  role.name == roleName
  +	  }
  +	  raise CommandError, "Role '#{roleName}' is not currently available to you." unless
  +		  role.is_a?( MUES::Role )
  +
  +	  results << OutputEvent.new( "Connecting..." )
  +	  results << env.getParticipantProxy( context.user, role )
  +	  results << OutputEvent.new( "connected.\n\n" )
     else
   	  results << OutputEvent.new( usage() )
     end
  
positive.code: 	  ### Look for the roles in the requested environment. Catch any
  	  ### problems as exceptions, and turn them into error messages
  	  ### for output.
  	  begin
  		  env = MUES::ServerFunctions::getEnvironment( envName ) or
  			  raise CommandError, "No such environment '#{envName}'."
  		  list << "%s (%s)\n" % [ envName, env.class.name ]
  		  env.getAvailableRoles( context.user ).each {|role|
  			  list << "    #{role.to_s}\n"
  			  roleCount += 1
  		  }
  	  rescue CommandError, SecurityViolation => e
  		  list << e.message + "\n"
  	  end
  
  	  list << "\n"
    }
  
negative.code: #
  # MUES::CommandShell environment manipulation commands.
  # Time-stamp: <12-Oct-2002 06:18:17 deveiant>
  # $Id: environments.cmd,v 1.4 2002/10/12 15:37:01 deveiant Exp $
  #
  # == Authors:
  # * Michael Granger <ged@FaerieMUD.org>
  