diff options
Diffstat (limited to 'OpenSim/Services/HypergridService/GatekeeperService.cs')
-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 | } |