From 1196f3eac7d7b72907fa42a6320c5263e3e46abe Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Wed, 13 May 2009 04:04:26 +0000 Subject: Add most of the meat to the LSL HTTP server --- OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation') diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index cdb91fb..9020ff9 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs @@ -109,6 +109,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api m_TransferModule = m_ScriptEngine.World.RequestModuleInterface(); m_UrlModule = m_ScriptEngine.World.RequestModuleInterface(); + if (m_UrlModule != null) + { + m_ScriptEngine.OnScriptRemoved += m_UrlModule.ScriptRemoved; + m_ScriptEngine.OnObjectRemoved += m_UrlModule.ObjectRemoved; + } AsyncCommands = new AsyncCommandManager(ScriptEngine); } @@ -5616,7 +5621,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api public LSL_Integer llGetFreeURLs() { m_host.AddScriptLPS(1); - NotImplemented("llGetFreeURLs"); + if (m_UrlModule != null) + return new LSL_Integer(m_UrlModule.GetFreeUrls()); return new LSL_Integer(0); } -- cgit v1.1