diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 8 |
1 files changed, 7 insertions, 1 deletions
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 | |||
109 | m_TransferModule = | 109 | m_TransferModule = |
110 | m_ScriptEngine.World.RequestModuleInterface<IMessageTransferModule>(); | 110 | m_ScriptEngine.World.RequestModuleInterface<IMessageTransferModule>(); |
111 | m_UrlModule = m_ScriptEngine.World.RequestModuleInterface<IUrlModule>(); | 111 | m_UrlModule = m_ScriptEngine.World.RequestModuleInterface<IUrlModule>(); |
112 | if (m_UrlModule != null) | ||
113 | { | ||
114 | m_ScriptEngine.OnScriptRemoved += m_UrlModule.ScriptRemoved; | ||
115 | m_ScriptEngine.OnObjectRemoved += m_UrlModule.ObjectRemoved; | ||
116 | } | ||
112 | 117 | ||
113 | AsyncCommands = new AsyncCommandManager(ScriptEngine); | 118 | AsyncCommands = new AsyncCommandManager(ScriptEngine); |
114 | } | 119 | } |
@@ -5616,7 +5621,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
5616 | public LSL_Integer llGetFreeURLs() | 5621 | public LSL_Integer llGetFreeURLs() |
5617 | { | 5622 | { |
5618 | m_host.AddScriptLPS(1); | 5623 | m_host.AddScriptLPS(1); |
5619 | NotImplemented("llGetFreeURLs"); | 5624 | if (m_UrlModule != null) |
5625 | return new LSL_Integer(m_UrlModule.GetFreeUrls()); | ||
5620 | return new LSL_Integer(0); | 5626 | return new LSL_Integer(0); |
5621 | } | 5627 | } |
5622 | 5628 | ||