diff options
author | BlueWall | 2012-01-01 14:57:13 -0500 |
---|---|---|
committer | BlueWall | 2012-01-03 11:10:23 -0500 |
commit | 6941058824e418bcdc2932c35f226bbcc5cea2ad (patch) | |
tree | 5c688928eeae973490ff552ccec5a8898085b3b8 /OpenSim/Services/HypergridService/UserAgentService.cs | |
parent | Bug fix in map tiles in standalone: the map has been blank since commit 01ae9... (diff) | |
download | opensim-SC-6941058824e418bcdc2932c35f226bbcc5cea2ad.zip opensim-SC-6941058824e418bcdc2932c35f226bbcc5cea2ad.tar.gz opensim-SC-6941058824e418bcdc2932c35f226bbcc5cea2ad.tar.bz2 opensim-SC-6941058824e418bcdc2932c35f226bbcc5cea2ad.tar.xz |
Profile Updates
Update basic profile to use the replaceable interface, making configuration less error-prone. Add support to query avatar's home user account and profile service for regions usng the updated OpenProfileModule with Hypergrid.
Diffstat (limited to 'OpenSim/Services/HypergridService/UserAgentService.cs')
-rw-r--r-- | OpenSim/Services/HypergridService/UserAgentService.cs | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/OpenSim/Services/HypergridService/UserAgentService.cs b/OpenSim/Services/HypergridService/UserAgentService.cs index 8538660..f681df4 100644 --- a/OpenSim/Services/HypergridService/UserAgentService.cs +++ b/OpenSim/Services/HypergridService/UserAgentService.cs | |||
@@ -488,6 +488,31 @@ namespace OpenSim.Services.HypergridService | |||
488 | return online; | 488 | return online; |
489 | } | 489 | } |
490 | 490 | ||
491 | public Dictionary<string, object> GetUserInfo(UUID userID) | ||
492 | { | ||
493 | Dictionary<string, object> info = new Dictionary<string, object>(); | ||
494 | |||
495 | if (m_UserAccountService == null) | ||
496 | { | ||
497 | m_log.WarnFormat("[USER AGENT SERVICE]: Unable to get user flags because user account service is missing"); | ||
498 | info["result"] = "fail"; | ||
499 | info["message"] = "UserAccountService is missing!"; | ||
500 | return info; | ||
501 | } | ||
502 | |||
503 | UserAccount account = m_UserAccountService.GetUserAccount(UUID.Zero /*!!!*/, userID); | ||
504 | |||
505 | if (account != null) | ||
506 | { | ||
507 | info.Add("user_flags", (object)account.UserFlags); | ||
508 | info.Add("user_created", (object)account.Created); | ||
509 | info.Add("user_title", (object)account.UserTitle); | ||
510 | info.Add("result", "success"); | ||
511 | } | ||
512 | |||
513 | return info; | ||
514 | } | ||
515 | |||
491 | public Dictionary<string, object> GetServerURLs(UUID userID) | 516 | public Dictionary<string, object> GetServerURLs(UUID userID) |
492 | { | 517 | { |
493 | if (m_UserAccountService == null) | 518 | if (m_UserAccountService == null) |