From a7de0ae9ec9226760ce134200ee692b825993061 Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Fri, 10 Apr 2009 21:44:27 +0000 Subject: Make the scrpt engines ignore any script that begins with //MRM: --- OpenSim/Region/ScriptEngine/DotNetEngine/EventManager.cs | 3 +++ OpenSim/Region/ScriptEngine/XEngine/XEngine.cs | 3 +++ 2 files changed, 6 insertions(+) (limited to 'OpenSim/Region/ScriptEngine') diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/EventManager.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/EventManager.cs index d05fb51..548b0ac 100644 --- a/OpenSim/Region/ScriptEngine/DotNetEngine/EventManager.cs +++ b/OpenSim/Region/ScriptEngine/DotNetEngine/EventManager.cs @@ -240,6 +240,9 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine public void OnRezScript(uint localID, UUID itemID, string script, int startParam, bool postOnRez, string engine, int stateSource) { + if (script.StartsWith("//MRM:")) + return; + List engines = new List( myScriptEngine.World.RequestModuleInterfaces()); diff --git a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs index a78dad6..037c494 100644 --- a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs +++ b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs @@ -353,6 +353,9 @@ namespace OpenSim.Region.ScriptEngine.XEngine public void OnRezScript(uint localID, UUID itemID, string script, int startParam, bool postOnRez, string engine, int stateSource) { + if (script.StartsWith("//MRM:")) + return; + List engines = new List(m_Scene.RequestModuleInterfaces()); List names = new List(); -- cgit v1.1