Merge branch 'master' of /var/git/opensim/

viewer-2-initial-appearance
opensim mirror account 2010-11-16 08:20:04 -08:00
commit 63171839a3
1 changed files with 5 additions and 1 deletions

View File

@ -665,7 +665,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
if (regions != null && regions.Count > 0) if (regions != null && regions.Count > 0)
{ {
GridRegion regInfo = regions[0]; GridRegion regInfo = regions[0];
regionName = regInfo.RegionName; string[] parts = regInfo.RegionName.Split(new char[] { ':' });
if (parts.Length > 2)
regionName = parts[2];
else
regionName = parts[0];
} }
} }
World.RequestTeleportLocation(presence.ControllingClient, regionName, World.RequestTeleportLocation(presence.ControllingClient, regionName,