aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2014-03-13 00:04:20 +0000
committerJustin Clark-Casey (justincc)2014-03-13 00:04:20 +0000
commit873eee543192632a7febb99aa77b53d14d926674 (patch)
tree24bf475fdabf0dac18a85072a54d9ee1e61a2ef9 /OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
parentOnly allow llBreakAllLinks() to work if script has received PERMISSION_CHANGE... (diff)
downloadopensim-SC_OLD-873eee543192632a7febb99aa77b53d14d926674.zip
opensim-SC_OLD-873eee543192632a7febb99aa77b53d14d926674.tar.gz
opensim-SC_OLD-873eee543192632a7febb99aa77b53d14d926674.tar.bz2
opensim-SC_OLD-873eee543192632a7febb99aa77b53d14d926674.tar.xz
Implement osForceBreakAllLinks().
Identical to llBreakAllLinks() except that it doesn't require the script to have link permissions.
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs10
1 files changed, 10 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 cfc48e9..6302455 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
@@ -2350,6 +2350,16 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
2350 ((LSL_Api)m_LSL_Api).BreakLink(linknum); 2350 ((LSL_Api)m_LSL_Api).BreakLink(linknum);
2351 } 2351 }
2352 2352
2353 public void osForceBreakAllLinks()
2354 {
2355 CheckThreatLevel(ThreatLevel.VeryLow, "osForceBreakAllLinks");
2356
2357 m_host.AddScriptLPS(1);
2358
2359 InitLSL();
2360 ((LSL_Api)m_LSL_Api).BreakAllLinks();
2361 }
2362
2353 public LSL_Integer osIsNpc(LSL_Key npc) 2363 public LSL_Integer osIsNpc(LSL_Key npc)
2354 { 2364 {
2355 CheckThreatLevel(ThreatLevel.None, "osIsNpc"); 2365 CheckThreatLevel(ThreatLevel.None, "osIsNpc");