aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared
diff options
context:
space:
mode:
authorCharles Krinke2008-07-09 14:32:21 +0000
committerCharles Krinke2008-07-09 14:32:21 +0000
commit9f68bcd80b22ddbfadf1692b6ef74b57ef26b8a7 (patch)
tree79d591a24b076dd0a7f33c33858f9d87cb9d2d22 /OpenSim/Region/ScriptEngine/Shared
parentfor testing purposes only: (diff)
downloadopensim-SC_OLD-9f68bcd80b22ddbfadf1692b6ef74b57ef26b8a7.zip
opensim-SC_OLD-9f68bcd80b22ddbfadf1692b6ef74b57ef26b8a7.tar.gz
opensim-SC_OLD-9f68bcd80b22ddbfadf1692b6ef74b57ef26b8a7.tar.bz2
opensim-SC_OLD-9f68bcd80b22ddbfadf1692b6ef74b57ef26b8a7.tar.xz
Mantis#1700. Thank you, Melanie for a patch that:
Lets osSetParcelMediaTime honor the AllowOSComamnds setting
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs8
1 files changed, 8 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 b7ff9b6..ae138b4 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
@@ -586,6 +586,14 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
586 //for testing purposes only 586 //for testing purposes only
587 public void osSetParcelMediaTime(double time) 587 public void osSetParcelMediaTime(double time)
588 { 588 {
589 if (!m_ScriptEngine.Config.GetBoolean("AllowOSFunctions", false))
590 {
591 OSSLError("osSetParcelMediaTime: permission denied");
592 return;
593 }
594
595 m_host.AddScriptLPS(1);
596
589 World.ParcelMediaSetTime((float)time); 597 World.ParcelMediaSetTime((float)time);
590 } 598 }
591 } 599 }