From b16abc8166c29585cb76cc55c3bdd76e5833cb4f Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Thu, 5 Jan 2017 19:07:37 +0000 Subject: Massive tab and trailing space cleanup --- OpenSim/Server/Handlers/Simulation/AgentHandlers.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'OpenSim/Server/Handlers/Simulation') diff --git a/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs b/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs index 364f1fd..4e1f72e 100644 --- a/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs +++ b/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs @@ -190,7 +190,7 @@ namespace OpenSim.Server.Handlers.Simulation { // If there is no version in the packet at all we're looking at 0.6 or // even more ancient. Refuse it. - if(theirVersion == 0f) + if(theirVersion == 0f) { resp["success"] = OSD.FromBoolean(false); resp["reason"] = OSD.FromString("Your region is running a old version of opensim no longer supported. Consider updating it"); @@ -199,8 +199,8 @@ namespace OpenSim.Server.Handlers.Simulation } version = theirVersion; - - if (version < VersionInfo.SimulationServiceVersionAcceptedMin || + + if (version < VersionInfo.SimulationServiceVersionAcceptedMin || version > VersionInfo.SimulationServiceVersionAcceptedMax ) { resp["success"] = OSD.FromBoolean(false); @@ -274,7 +274,7 @@ namespace OpenSim.Server.Handlers.Simulation OSDArray featuresWanted = new OSDArray(); foreach (UUID feature in features) featuresWanted.Add(OSD.FromString(feature.ToString())); - + resp["features"] = featuresWanted; // We must preserve defaults here, otherwise a false "success" will not be put into the JSON map! @@ -460,7 +460,7 @@ namespace OpenSim.Server.Handlers.Simulation source.RegionLocY = Int32.Parse(args["source_y"].AsString()); source.RegionName = args["source_name"].AsString(); source.RegionID = UUID.Parse(args["source_uuid"].AsString()); - + if (args.ContainsKey("source_server_uri")) source.RawServerURI = args["source_server_uri"].AsString(); else -- cgit v1.1