Make the scrpt engines ignore any script that begins with //MRM:

0.6.5-rc1
Melanie Thielker 2009-04-10 21:44:27 +00:00
parent ae6f265729
commit a7de0ae9ec
2 changed files with 6 additions and 0 deletions

View File

@ -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<IScriptModule> engines =
new List<IScriptModule>(
myScriptEngine.World.RequestModuleInterfaces<IScriptModule>());

View File

@ -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<IScriptModule> engines = new List<IScriptModule>(m_Scene.RequestModuleInterfaces<IScriptModule>());
List<string> names = new List<string>();