diff options
author | Diva Canto | 2012-03-17 21:27:28 -0700 |
---|---|---|
committer | Diva Canto | 2012-03-17 21:27:28 -0700 |
commit | d1256536b500a0d72eb643635d10c65980ea2588 (patch) | |
tree | b378a299d970fa5f3266a59f32baa607fee3006b /OpenSim/Services/HypergridService | |
parent | Amend to previous commit: normalize strings ToLower. (diff) | |
download | opensim-SC-d1256536b500a0d72eb643635d10c65980ea2588.zip opensim-SC-d1256536b500a0d72eb643635d10c65980ea2588.tar.gz opensim-SC-d1256536b500a0d72eb643635d10c65980ea2588.tar.bz2 opensim-SC-d1256536b500a0d72eb643635d10c65980ea2588.tar.xz |
Added GetUUID(first, last) on UserAgentsService so that we can finally make direct user connections.
Diffstat (limited to 'OpenSim/Services/HypergridService')
-rw-r--r-- | OpenSim/Services/HypergridService/UserAgentService.cs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/OpenSim/Services/HypergridService/UserAgentService.cs b/OpenSim/Services/HypergridService/UserAgentService.cs index f681df4..5eca801 100644 --- a/OpenSim/Services/HypergridService/UserAgentService.cs +++ b/OpenSim/Services/HypergridService/UserAgentService.cs | |||
@@ -566,6 +566,16 @@ namespace OpenSim.Services.HypergridService | |||
566 | 566 | ||
567 | return string.Empty; | 567 | return string.Empty; |
568 | } | 568 | } |
569 | |||
570 | public UUID GetUUID(String first, String last) | ||
571 | { | ||
572 | // Let's see if it's a local user | ||
573 | UserAccount account = m_UserAccountService.GetUserAccount(UUID.Zero, first, last); | ||
574 | if (account != null) | ||
575 | return account.PrincipalID; | ||
576 | else | ||
577 | return UUID.Zero; | ||
578 | } | ||
569 | } | 579 | } |
570 | 580 | ||
571 | class TravelingAgentInfo | 581 | class TravelingAgentInfo |