diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs index 5c03191..2c025c1 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | |||
@@ -264,7 +264,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
264 | // for safe funtions always active | 264 | // for safe funtions always active |
265 | public void CheckThreatLevel() | 265 | public void CheckThreatLevel() |
266 | { | 266 | { |
267 | m_host.AddScriptLPS(1); | ||
268 | if (!m_OSFunctionsEnabled) | 267 | if (!m_OSFunctionsEnabled) |
269 | OSSLError(String.Format("{0} permission denied. All OS functions are disabled.")); // throws | 268 | OSSLError(String.Format("{0} permission denied. All OS functions are disabled.")); // throws |
270 | } | 269 | } |
@@ -272,7 +271,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
272 | // Returns if the function is allowed. Throws a script exception if not allowed. | 271 | // Returns if the function is allowed. Throws a script exception if not allowed. |
273 | public void CheckThreatLevel(ThreatLevel level, string function) | 272 | public void CheckThreatLevel(ThreatLevel level, string function) |
274 | { | 273 | { |
275 | m_host.AddScriptLPS(1); | ||
276 | if (!m_OSFunctionsEnabled) | 274 | if (!m_OSFunctionsEnabled) |
277 | OSSLError(String.Format("{0} permission denied. All OS functions are disabled.", function)); // throws | 275 | OSSLError(String.Format("{0} permission denied. All OS functions are disabled.", function)); // throws |
278 | 276 | ||
@@ -1811,7 +1809,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
1811 | // the user does not have permission to see it. This as opposed to | 1809 | // the user does not have permission to see it. This as opposed to |
1812 | // throwing an exception. | 1810 | // throwing an exception. |
1813 | 1811 | ||
1814 | m_host.AddScriptLPS(1); | ||
1815 | string ret = String.Empty; | 1812 | string ret = String.Empty; |
1816 | // if (String.IsNullOrEmpty(CheckThreatLevelTest(ThreatLevel.High, "osGetPhysicsEngineType"))) | 1813 | // if (String.IsNullOrEmpty(CheckThreatLevelTest(ThreatLevel.High, "osGetPhysicsEngineType"))) |
1817 | { | 1814 | { |