aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/XEngine
diff options
context:
space:
mode:
authorMelanie Thielker2009-04-10 21:44:27 +0000
committerMelanie Thielker2009-04-10 21:44:27 +0000
commita7de0ae9ec9226760ce134200ee692b825993061 (patch)
tree41cd9c4817a0e01fa066ba2d42432b2a95c34b72 /OpenSim/Region/ScriptEngine/XEngine
parentAdd an optional region module which will supply a script event, (diff)
downloadopensim-SC_OLD-a7de0ae9ec9226760ce134200ee692b825993061.zip
opensim-SC_OLD-a7de0ae9ec9226760ce134200ee692b825993061.tar.gz
opensim-SC_OLD-a7de0ae9ec9226760ce134200ee692b825993061.tar.bz2
opensim-SC_OLD-a7de0ae9ec9226760ce134200ee692b825993061.tar.xz
Make the scrpt engines ignore any script that begins with //MRM:
Diffstat (limited to 'OpenSim/Region/ScriptEngine/XEngine')
-rw-r--r--OpenSim/Region/ScriptEngine/XEngine/XEngine.cs3
1 files changed, 3 insertions, 0 deletions
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
353 353
354 public void OnRezScript(uint localID, UUID itemID, string script, int startParam, bool postOnRez, string engine, int stateSource) 354 public void OnRezScript(uint localID, UUID itemID, string script, int startParam, bool postOnRez, string engine, int stateSource)
355 { 355 {
356 if (script.StartsWith("//MRM:"))
357 return;
358
356 List<IScriptModule> engines = new List<IScriptModule>(m_Scene.RequestModuleInterfaces<IScriptModule>()); 359 List<IScriptModule> engines = new List<IScriptModule>(m_Scene.RequestModuleInterfaces<IScriptModule>());
357 360
358 List<string> names = new List<string>(); 361 List<string> names = new List<string>();