From 4cf5ef3cd4c6712f74615385a03217f5d4cecb80 Mon Sep 17 00:00:00 2001
From: meta7
Date: Mon, 30 Aug 2010 11:41:20 -0700
Subject: Kick the user from the region in the circumstance that the TP home
failed - ONLY if it was triggered by an estate ban. This makes baby jesus
cry, and should be fixed to search for alternative regions if the home region
is unavailable.
---
OpenSim/Region/Framework/Scenes/Scene.cs | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
(limited to 'OpenSim/Region/Framework/Scenes')
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs
index 957c4e8..736b696 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.cs
@@ -2985,15 +2985,16 @@ namespace OpenSim.Region.Framework.Scenes
///
/// The avatar's Unique ID
/// The IClientAPI for the client
- public virtual void TeleportClientHome(UUID agentId, IClientAPI client)
+ public virtual bool TeleportClientHome(UUID agentId, IClientAPI client)
{
if (m_teleportModule != null)
- m_teleportModule.TeleportHome(agentId, client);
+ return m_teleportModule.TeleportHome(agentId, client);
else
{
m_log.DebugFormat("[SCENE]: Unable to teleport user home: no AgentTransferModule is active");
client.SendTeleportFailed("Unable to perform teleports on this simulator.");
}
+ return false;
}
///
--
cgit v1.1