diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ScriptEngine/XEngine/XEngine.cs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs index c72d281..161fd8c 100644 --- a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs +++ b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs | |||
@@ -341,6 +341,15 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
341 | 341 | ||
342 | public void OnRezScript(uint localID, UUID itemID, string script, int startParam, bool postOnRez, string engine) | 342 | public void OnRezScript(uint localID, UUID itemID, string script, int startParam, bool postOnRez, string engine) |
343 | { | 343 | { |
344 | if (script.Length > 10) | ||
345 | { | ||
346 | if (script.Substring(0, 10) == "//XEngine:") | ||
347 | { | ||
348 | script = "//" + script.Substring(10); | ||
349 | engine = "XEngine"; | ||
350 | } | ||
351 | } | ||
352 | |||
344 | if (engine != "XEngine") | 353 | if (engine != "XEngine") |
345 | return; | 354 | return; |
346 | 355 | ||