aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Services/HypergridService/UserAgentService.cs
diff options
context:
space:
mode:
authorBlueWall2012-01-01 14:57:13 -0500
committerBlueWall2012-01-03 11:10:23 -0500
commit6941058824e418bcdc2932c35f226bbcc5cea2ad (patch)
tree5c688928eeae973490ff552ccec5a8898085b3b8 /OpenSim/Services/HypergridService/UserAgentService.cs
parentBug fix in map tiles in standalone: the map has been blank since commit 01ae9... (diff)
downloadopensim-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.cs25
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)