diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Services/GridService/GridService.cs | 3 | ||||
-rw-r--r-- | OpenSim/Services/GridService/HypergridLinker.cs | 3 | ||||
-rw-r--r-- | OpenSim/Services/HypergridService/GatekeeperService.cs | 9 |
3 files changed, 6 insertions, 9 deletions
diff --git a/OpenSim/Services/GridService/GridService.cs b/OpenSim/Services/GridService/GridService.cs index 515d620..4dee7a4 100644 --- a/OpenSim/Services/GridService/GridService.cs +++ b/OpenSim/Services/GridService/GridService.cs | |||
@@ -329,7 +329,7 @@ namespace OpenSim.Services.GridService | |||
329 | } | 329 | } |
330 | } | 330 | } |
331 | 331 | ||
332 | if (m_AllowHypergridMapSearch && rdatas.Count == 0 && name.Contains(".")) | 332 | if (m_AllowHypergridMapSearch && rdatas == null || (rdatas != null && rdatas.Count == 0) && name.Contains(".")) |
333 | { | 333 | { |
334 | GridRegion r = m_HypergridLinker.LinkRegion(scopeID, name); | 334 | GridRegion r = m_HypergridLinker.LinkRegion(scopeID, name); |
335 | if (r != null) | 335 | if (r != null) |
@@ -412,6 +412,7 @@ namespace OpenSim.Services.GridService | |||
412 | ret.Add(RegionData2RegionInfo(r)); | 412 | ret.Add(RegionData2RegionInfo(r)); |
413 | } | 413 | } |
414 | 414 | ||
415 | m_log.DebugFormat("[GRID SERVICE]: Fallback returned {0} regions", ret.Count); | ||
415 | return ret; | 416 | return ret; |
416 | } | 417 | } |
417 | 418 | ||
diff --git a/OpenSim/Services/GridService/HypergridLinker.cs b/OpenSim/Services/GridService/HypergridLinker.cs index c0b635c..18d0586 100644 --- a/OpenSim/Services/GridService/HypergridLinker.cs +++ b/OpenSim/Services/GridService/HypergridLinker.cs | |||
@@ -470,7 +470,8 @@ namespace OpenSim.Services.GridService | |||
470 | string reason = string.Empty; | 470 | string reason = string.Empty; |
471 | if (TryLinkRegionToCoords(UUID.Zero, mapName, xloc, yloc, out reason) == null) | 471 | if (TryLinkRegionToCoords(UUID.Zero, mapName, xloc, yloc, out reason) == null) |
472 | MainConsole.Instance.Output("Failed to link region: " + reason); | 472 | MainConsole.Instance.Output("Failed to link region: " + reason); |
473 | MainConsole.Instance.Output("Hyperlink established"); | 473 | else |
474 | MainConsole.Instance.Output("Hyperlink established"); | ||
474 | } | 475 | } |
475 | else | 476 | else |
476 | { | 477 | { |
diff --git a/OpenSim/Services/HypergridService/GatekeeperService.cs b/OpenSim/Services/HypergridService/GatekeeperService.cs index 3bf0836..763e523 100644 --- a/OpenSim/Services/HypergridService/GatekeeperService.cs +++ b/OpenSim/Services/HypergridService/GatekeeperService.cs | |||
@@ -120,7 +120,7 @@ namespace OpenSim.Services.HypergridService | |||
120 | reason = string.Empty; | 120 | reason = string.Empty; |
121 | 121 | ||
122 | m_log.DebugFormat("[GATEKEEPER SERVICE]: Request to link to {0}", regionName); | 122 | m_log.DebugFormat("[GATEKEEPER SERVICE]: Request to link to {0}", regionName); |
123 | if (!m_AllowTeleportsToAnyRegion) | 123 | if (!m_AllowTeleportsToAnyRegion || regionName == string.Empty) |
124 | { | 124 | { |
125 | List<GridRegion> defs = m_GridService.GetDefaultRegions(m_ScopeID); | 125 | List<GridRegion> defs = m_GridService.GetDefaultRegions(m_ScopeID); |
126 | if (defs != null && defs.Count > 0) | 126 | if (defs != null && defs.Count > 0) |
@@ -133,12 +133,7 @@ namespace OpenSim.Services.HypergridService | |||
133 | } | 133 | } |
134 | catch | 134 | catch |
135 | { | 135 | { |
136 | reason = "Grid setup problem"; | 136 | reason = "Grid setup problem. Try specifying a particular region here."; |
137 | return false; | ||
138 | } | ||
139 | if (regionName != string.Empty) | ||
140 | { | ||
141 | reason = "Direct links to regions not allowed"; | ||
142 | return false; | 137 | return false; |
143 | } | 138 | } |
144 | 139 | ||