aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Services/HypergridService/GatekeeperService.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Services/HypergridService/GatekeeperService.cs')
-rw-r--r--OpenSim/Services/HypergridService/GatekeeperService.cs17
1 files changed, 13 insertions, 4 deletions
diff --git a/OpenSim/Services/HypergridService/GatekeeperService.cs b/OpenSim/Services/HypergridService/GatekeeperService.cs
index 174174c..6305f37 100644
--- a/OpenSim/Services/HypergridService/GatekeeperService.cs
+++ b/OpenSim/Services/HypergridService/GatekeeperService.cs
@@ -77,15 +77,24 @@ namespace OpenSim.Services.HypergridService
77 77
78 public bool LinkRegion(string regionName, out UUID regionID, out ulong regionHandle, out string imageURL, out string reason) 78 public bool LinkRegion(string regionName, out UUID regionID, out ulong regionHandle, out string imageURL, out string reason)
79 { 79 {
80 regionID = m_DefaultGatewayRegion.RegionID; 80 regionID = UUID.Zero;
81 regionHandle = m_DefaultGatewayRegion.RegionHandle; 81 regionHandle = 0;
82 imageURL = string.Empty; 82 imageURL = string.Empty;
83 reason = string.Empty; 83 reason = string.Empty;
84 84
85 m_log.DebugFormat("[GATEKEEPER SERVICE]: Request to link to {0}", regionName);
85 if (!m_AllowTeleportsToAnyRegion) 86 if (!m_AllowTeleportsToAnyRegion)
86 { 87 {
87 regionID = m_DefaultGatewayRegion.RegionID; 88 try
88 regionHandle = m_DefaultGatewayRegion.RegionHandle; 89 {
90 regionID = m_DefaultGatewayRegion.RegionID;
91 regionHandle = m_DefaultGatewayRegion.RegionHandle;
92 }
93 catch
94 {
95 reason = "Grid setup problem";
96 return false;
97 }
89 if (regionName != string.Empty) 98 if (regionName != string.Empty)
90 { 99 {
91 reason = "Direct links to regions not allowed"; 100 reason = "Direct links to regions not allowed";