From 55cc8044cbb5f723831ddc5070407be8d0cc1255 Mon Sep 17 00:00:00 2001
From: Oren Hurvitz
Date: Sun, 6 Apr 2014 19:38:19 +0300
Subject: Refactored: use Scene.GetAgentHomeURI() to get the Home URI of a user
---
OpenSim/Region/Framework/Scenes/Scene.cs | 12 ++++++++++++
1 file changed, 12 insertions(+)
(limited to 'OpenSim/Region/Framework')
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs
index 19d4e84..3ff21ea 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.cs
@@ -2676,6 +2676,18 @@ namespace OpenSim.Region.Framework.Scenes
}
///
+ /// Returns the Home URI of the agent, or null if unknown.
+ ///
+ public string GetAgentHomeURI(UUID agentID)
+ {
+ AgentCircuitData circuit = AuthenticateHandler.GetAgentCircuitData(agentID);
+ if (circuit != null && circuit.ServiceURLs != null && circuit.ServiceURLs.ContainsKey("HomeURI"))
+ return circuit.ServiceURLs["HomeURI"].ToString();
+ else
+ return null;
+ }
+
+ ///
/// Cache the user name for later use.
///
///
--
cgit v1.1