aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/Scene.cs
diff options
context:
space:
mode:
authorOren Hurvitz2014-04-06 19:38:19 +0300
committerOren Hurvitz2014-04-07 07:26:44 +0100
commit55cc8044cbb5f723831ddc5070407be8d0cc1255 (patch)
treeecde4c2d298beea72b0346ce764ef2854780201d /OpenSim/Region/Framework/Scenes/Scene.cs
parentFixed: during a teleport we always sent the error "The teleport destination c... (diff)
downloadopensim-SC_OLD-55cc8044cbb5f723831ddc5070407be8d0cc1255.zip
opensim-SC_OLD-55cc8044cbb5f723831ddc5070407be8d0cc1255.tar.gz
opensim-SC_OLD-55cc8044cbb5f723831ddc5070407be8d0cc1255.tar.bz2
opensim-SC_OLD-55cc8044cbb5f723831ddc5070407be8d0cc1255.tar.xz
Refactored: use Scene.GetAgentHomeURI() to get the Home URI of a user
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Framework/Scenes/Scene.cs12
1 files changed, 12 insertions, 0 deletions
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
2676 } 2676 }
2677 2677
2678 /// <summary> 2678 /// <summary>
2679 /// Returns the Home URI of the agent, or null if unknown.
2680 /// </summary>
2681 public string GetAgentHomeURI(UUID agentID)
2682 {
2683 AgentCircuitData circuit = AuthenticateHandler.GetAgentCircuitData(agentID);
2684 if (circuit != null && circuit.ServiceURLs != null && circuit.ServiceURLs.ContainsKey("HomeURI"))
2685 return circuit.ServiceURLs["HomeURI"].ToString();
2686 else
2687 return null;
2688 }
2689
2690 /// <summary>
2679 /// Cache the user name for later use. 2691 /// Cache the user name for later use.
2680 /// </summary> 2692 /// </summary>
2681 /// <param name="sp"></param> 2693 /// <param name="sp"></param>