aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
index 5414b95..3e1c930 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
@@ -552,6 +552,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
552 552
553 public string osGetScriptEngineName() 553 public string osGetScriptEngineName()
554 { 554 {
555 if (!m_ScriptEngine.Config.GetBoolean("AllowOSFunctions", false))
556 {
557 OSSLError("osGetScriptEngineName: permission denied");
558 return "";
559 }
560
555 m_host.AddScriptLPS(1); 561 m_host.AddScriptLPS(1);
556 562
557 int scriptEngineNameIndex = 0; 563 int scriptEngineNameIndex = 0;