diff options
Merge branch 'master' into careminster
Conflicts:
OpenSim/Region/CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs
OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
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 38bcce6..1a839f3 100644 --- a/OpenSim/Services/HypergridService/UserAgentService.cs +++ b/OpenSim/Services/HypergridService/UserAgentService.cs | |||
@@ -486,6 +486,31 @@ namespace OpenSim.Services.HypergridService | |||
486 | return online; | 486 | return online; |
487 | } | 487 | } |
488 | 488 | ||
489 | public Dictionary<string, object> GetUserInfo(UUID userID) | ||
490 | { | ||
491 | Dictionary<string, object> info = new Dictionary<string, object>(); | ||
492 | |||
493 | if (m_UserAccountService == null) | ||
494 | { | ||
495 | m_log.WarnFormat("[USER AGENT SERVICE]: Unable to get user flags because user account service is missing"); | ||
496 | info["result"] = "fail"; | ||
497 | info["message"] = "UserAccountService is missing!"; | ||
498 | return info; | ||
499 | } | ||
500 | |||
501 | UserAccount account = m_UserAccountService.GetUserAccount(UUID.Zero /*!!!*/, userID); | ||
502 | |||
503 | if (account != null) | ||
504 | { | ||
505 | info.Add("user_flags", (object)account.UserFlags); | ||
506 | info.Add("user_created", (object)account.Created); | ||
507 | info.Add("user_title", (object)account.UserTitle); | ||
508 | info.Add("result", "success"); | ||
509 | } | ||
510 | |||
511 | return info; | ||
512 | } | ||
513 | |||
489 | public Dictionary<string, object> GetServerURLs(UUID userID) | 514 | public Dictionary<string, object> GetServerURLs(UUID userID) |
490 | { | 515 | { |
491 | if (m_UserAccountService == null) | 516 | if (m_UserAccountService == null) |