aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Services/HypergridService
diff options
context:
space:
mode:
authorMelanie2012-01-05 07:43:16 +0100
committerMelanie2012-01-05 07:43:16 +0100
commit85d82c8140d2c72dcfb2e9eda373391d06dd5766 (patch)
tree7124cf5fc6ab8ccf4aa467cb6e599c779bcf7871 /OpenSim/Services/HypergridService
parentClean up GetWorldPosition (diff)
parentMerge branch 'master' into careminster (diff)
downloadopensim-SC_OLD-85d82c8140d2c72dcfb2e9eda373391d06dd5766.zip
opensim-SC_OLD-85d82c8140d2c72dcfb2e9eda373391d06dd5766.tar.gz
opensim-SC_OLD-85d82c8140d2c72dcfb2e9eda373391d06dd5766.tar.bz2
opensim-SC_OLD-85d82c8140d2c72dcfb2e9eda373391d06dd5766.tar.xz
Merge branch 'master' of ssh://3dhosting.de/var/git/careminster
Diffstat (limited to 'OpenSim/Services/HypergridService')
-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)