diff options
author | UbitUmarov | 2017-05-14 07:52:50 +0100 |
---|---|---|
committer | UbitUmarov | 2017-05-14 07:52:50 +0100 |
commit | eea247fcc5f29c767dc1e3b7f9a5616843256e8d (patch) | |
tree | ec27d1c12890efa30a2a04edb32c4190e265ba54 /OpenSim/Services/HypergridService/GatekeeperService.cs | |
parent | Merge branch 'master' into httptests (diff) | |
parent | clear land object on delete (diff) | |
download | opensim-SC-eea247fcc5f29c767dc1e3b7f9a5616843256e8d.zip opensim-SC-eea247fcc5f29c767dc1e3b7f9a5616843256e8d.tar.gz opensim-SC-eea247fcc5f29c767dc1e3b7f9a5616843256e8d.tar.bz2 opensim-SC-eea247fcc5f29c767dc1e3b7f9a5616843256e8d.tar.xz |
Merge branch 'master' into httptests
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Services/HypergridService/GatekeeperService.cs | 11 |
1 files changed, 6 insertions, 5 deletions
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 | } |