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/CoreModules/Avatar | |
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/CoreModules/Avatar')
-rw-r--r-- | OpenSim/Region/CoreModules/Avatar/Lure/HGLureModule.cs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Lure/HGLureModule.cs b/OpenSim/Region/CoreModules/Avatar/Lure/HGLureModule.cs index 68fef29..24286a4 100644 --- a/OpenSim/Region/CoreModules/Avatar/Lure/HGLureModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/Lure/HGLureModule.cs | |||
@@ -239,11 +239,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Lure | |||
239 | GatekeeperServiceConnector gConn = new GatekeeperServiceConnector(); | 239 | GatekeeperServiceConnector gConn = new GatekeeperServiceConnector(); |
240 | GridRegion gatekeeper = new GridRegion(); | 240 | GridRegion gatekeeper = new GridRegion(); |
241 | gatekeeper.ServerURI = url; | 241 | gatekeeper.ServerURI = url; |
242 | 242 | string homeURI = scene.GetAgentHomeURI(client.AgentId); | |
243 | string homeURI = null; | ||
244 | AgentCircuitData acd = scene.AuthenticateHandler.GetAgentCircuitData(client.AgentId); | ||
245 | if (acd != null && acd.ServiceURLs != null && acd.ServiceURLs.ContainsKey("HomeURI")) | ||
246 | homeURI = (string)acd.ServiceURLs["HomeURI"]; | ||
247 | 243 | ||
248 | string message; | 244 | string message; |
249 | GridRegion finalDestination = gConn.GetHyperlinkRegion(gatekeeper, new UUID(im.RegionID), client.AgentId, homeURI, out message); | 245 | GridRegion finalDestination = gConn.GetHyperlinkRegion(gatekeeper, new UUID(im.RegionID), client.AgentId, homeURI, out message); |