aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs16
1 files changed, 5 insertions, 11 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
index 5a796b8..bca08fb 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
@@ -698,21 +698,15 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
698 == World.LandChannel.GetLandObject( 698 == World.LandChannel.GetLandObject(
699 presence.AbsolutePosition.X, presence.AbsolutePosition.Y).LandData.OwnerID) 699 presence.AbsolutePosition.X, presence.AbsolutePosition.Y).LandData.OwnerID)
700 { 700 {
701 // Check for hostname , attempt to make a hglink 701 // Check for hostname, attempt to make a HG link,
702 // and convert the regionName to the target region 702 // and convert the regionName to the target region
703 if (regionName.Contains(".") && regionName.Contains(":")) 703 if (regionName.Contains(".") && regionName.Contains(":"))
704 { 704 {
705 List<GridRegion> regions = World.GridService.GetRegionsByName(World.RegionInfo.ScopeID, regionName, 1); 705 List<GridRegion> regions = World.GridService.GetRegionsByName(World.RegionInfo.ScopeID, regionName, 1);
706 // Try to link the region 706 string[] parts = regionName.Split(new char[] { ':' });
707 if (regions != null && regions.Count > 0) 707 if (parts.Length > 2)
708 { 708 regionName = parts[0] + ':' + parts[1] + "/ " + parts[2];
709 GridRegion regInfo = regions[0]; 709 regionName = "http://" + regionName;
710 string[] parts = regInfo.RegionName.Split(new char[] { ':' });
711 if (parts.Length > 2)
712 regionName = parts[2];
713 else
714 regionName = parts[0];
715 }
716 } 710 }
717 World.RequestTeleportLocation(presence.ControllingClient, regionName, 711 World.RequestTeleportLocation(presence.ControllingClient, regionName,
718 new Vector3((float)position.x, (float)position.y, (float)position.z), 712 new Vector3((float)position.x, (float)position.y, (float)position.z),