diff options
author | BlueWall | 2012-01-03 12:20:49 -0500 |
---|---|---|
committer | BlueWall | 2012-01-03 12:20:49 -0500 |
commit | 2c8e72217e6d6651bbae397ec78155a2a487afb6 (patch) | |
tree | b413f7389f6e0c4a933c56a79747c3f1a0e54492 /OpenSim/Services/HypergridService/UserAgentService.cs | |
parent | Fix for failed http request status (diff) | |
parent | Profile Updates (diff) | |
download | opensim-SC-2c8e72217e6d6651bbae397ec78155a2a487afb6.zip opensim-SC-2c8e72217e6d6651bbae397ec78155a2a487afb6.tar.gz opensim-SC-2c8e72217e6d6651bbae397ec78155a2a487afb6.tar.bz2 opensim-SC-2c8e72217e6d6651bbae397ec78155a2a487afb6.tar.xz |
Merge branch 'new_modules'
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) |