diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Services/Connectors/Land/LandServicesConnector.cs | 2 | ||||
-rw-r--r-- | OpenSim/Services/HypergridService/GatekeeperService.cs | 11 |
2 files changed, 8 insertions, 5 deletions
diff --git a/OpenSim/Services/Connectors/Land/LandServicesConnector.cs b/OpenSim/Services/Connectors/Land/LandServicesConnector.cs index 047880a..5492e83 100644 --- a/OpenSim/Services/Connectors/Land/LandServicesConnector.cs +++ b/OpenSim/Services/Connectors/Land/LandServicesConnector.cs | |||
@@ -117,6 +117,8 @@ namespace OpenSim.Services.Connectors | |||
117 | landData.UserLocation = Vector3.Parse((string)hash["UserLocation"]); | 117 | landData.UserLocation = Vector3.Parse((string)hash["UserLocation"]); |
118 | if (hash["RegionAccess"] != null) | 118 | if (hash["RegionAccess"] != null) |
119 | regionAccess = (byte)Convert.ToInt32((string)hash["RegionAccess"]); | 119 | regionAccess = (byte)Convert.ToInt32((string)hash["RegionAccess"]); |
120 | if(hash["Dwell"] != null) | ||
121 | landData.Dwell = Convert.ToSingle((string)hash["Dwell"]); | ||
120 | m_log.DebugFormat("[LAND CONNECTOR]: Got land data for parcel {0}", landData.Name); | 122 | m_log.DebugFormat("[LAND CONNECTOR]: Got land data for parcel {0}", landData.Name); |
121 | } | 123 | } |
122 | catch (Exception e) | 124 | catch (Exception e) |
diff --git a/OpenSim/Services/HypergridService/GatekeeperService.cs b/OpenSim/Services/HypergridService/GatekeeperService.cs index 9bf3cf8..8e3cf0e 100644 --- a/OpenSim/Services/HypergridService/GatekeeperService.cs +++ b/OpenSim/Services/HypergridService/GatekeeperService.cs | |||
@@ -376,7 +376,8 @@ namespace OpenSim.Services.HypergridService | |||
376 | return false; | 376 | return false; |
377 | } | 377 | } |
378 | 378 | ||
379 | if(account.PrincipalID == new UUID("6571e388-6218-4574-87db-f9379718315e")) | 379 | UUID agentID = aCircuit.AgentID; |
380 | if(agentID == new UUID("6571e388-6218-4574-87db-f9379718315e")) | ||
380 | { | 381 | { |
381 | // really? | 382 | // really? |
382 | reason = "Invalid account ID"; | 383 | reason = "Invalid account ID"; |
@@ -385,21 +386,21 @@ namespace OpenSim.Services.HypergridService | |||
385 | 386 | ||
386 | if(m_GridUserService != null) | 387 | if(m_GridUserService != null) |
387 | { | 388 | { |
388 | string PrincipalIDstr = account.PrincipalID.ToString(); | 389 | string PrincipalIDstr = agentID.ToString(); |
389 | GridUserInfo guinfo = m_GridUserService.GetGridUserInfo(PrincipalIDstr); | 390 | GridUserInfo guinfo = m_GridUserService.GetGridUserInfo(PrincipalIDstr); |
390 | 391 | ||
391 | if(!m_allowDuplicatePresences) | 392 | if(!m_allowDuplicatePresences) |
392 | { | 393 | { |
393 | if(guinfo != null && guinfo.Online && guinfo.LastRegionID != UUID.Zero) | 394 | if(guinfo != null && guinfo.Online && guinfo.LastRegionID != UUID.Zero) |
394 | { | 395 | { |
395 | if(SendAgentGodKillToRegion(UUID.Zero, account.PrincipalID, guinfo)) | 396 | if(SendAgentGodKillToRegion(UUID.Zero, agentID, guinfo)) |
396 | { | 397 | { |
397 | m_log.InfoFormat( | 398 | m_log.InfoFormat( |
398 | "[GATEKEEPER SERVICE]: Login failed for {0} {1}, reason: already logged in", | 399 | "[GATEKEEPER SERVICE]: Login failed for {0} {1}, reason: already logged in", |
399 | account.FirstName, account.LastName); | 400 | account.FirstName, account.LastName); |
400 | reason = "You appear to be already logged in on destiny grid " + | 401 | reason = "You appear to be already logged in on the destination grid " + |
401 | "Please wait a a minute or two and retry. " + | 402 | "Please wait a a minute or two and retry. " + |
402 | "If this takes longer than a few minutes please contact the grid owner. "; | 403 | "If this takes longer than a few minutes please contact the grid owner."; |
403 | return false; | 404 | return false; |
404 | } | 405 | } |
405 | } | 406 | } |