diff options
author | Oren Hurvitz | 2014-04-06 19:38:19 +0300 |
---|---|---|
committer | Oren Hurvitz | 2014-04-07 07:26:44 +0100 |
commit | 55cc8044cbb5f723831ddc5070407be8d0cc1255 (patch) | |
tree | ecde4c2d298beea72b0346ce764ef2854780201d /OpenSim/Region/Framework | |
parent | Fixed: during a teleport we always sent the error "The teleport destination c... (diff) | |
download | opensim-SC-55cc8044cbb5f723831ddc5070407be8d0cc1255.zip opensim-SC-55cc8044cbb5f723831ddc5070407be8d0cc1255.tar.gz opensim-SC-55cc8044cbb5f723831ddc5070407be8d0cc1255.tar.bz2 opensim-SC-55cc8044cbb5f723831ddc5070407be8d0cc1255.tar.xz |
Refactored: use Scene.GetAgentHomeURI() to get the Home URI of a user
Diffstat (limited to 'OpenSim/Region/Framework')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.cs | 12 |
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> |