aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Services/HypergridService/UserAgentService.cs
diff options
context:
space:
mode:
authorMelanie2012-01-05 08:15:33 +0000
committerMelanie2012-01-05 08:15:33 +0000
commit1ebc9d04aa33e18e22ee2f03465bc5950c3544ce (patch)
tree3e7e39255ad455b59434979d47db7da243ac3dd6 /OpenSim/Services/HypergridService/UserAgentService.cs
parentMerge branch 'master' into careminster (diff)
parentMerge branch 'master' of melanie@opensimulator.org:/var/git/opensim (diff)
downloadopensim-SC_OLD-1ebc9d04aa33e18e22ee2f03465bc5950c3544ce.zip
opensim-SC_OLD-1ebc9d04aa33e18e22ee2f03465bc5950c3544ce.tar.gz
opensim-SC_OLD-1ebc9d04aa33e18e22ee2f03465bc5950c3544ce.tar.bz2
opensim-SC_OLD-1ebc9d04aa33e18e22ee2f03465bc5950c3544ce.tar.xz
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.cs25
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)