diff options
author | Melanie Thielker | 2017-01-07 22:53:46 +0000 |
---|---|---|
committer | Melanie Thielker | 2017-01-07 22:53:46 +0000 |
commit | e5244fe70830d6c9ece23d26039d5cbabe9ce9ff (patch) | |
tree | ba8d9ed232e674f5b29882ea4c20e2b7fbbe9d8e /OpenSim/Region/ScriptEngine | |
parent | change OSSL enable option GOD to use IsGod, so it means a active god, as my o... (diff) | |
download | opensim-SC-e5244fe70830d6c9ece23d26039d5cbabe9ce9ff.zip opensim-SC-e5244fe70830d6c9ece23d26039d5cbabe9ce9ff.tar.gz opensim-SC-e5244fe70830d6c9ece23d26039d5cbabe9ce9ff.tar.bz2 opensim-SC-e5244fe70830d6c9ece23d26039d5cbabe9ce9ff.tar.xz |
Allow OSSL scripts to softfail
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | 2 | ||||
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs index 07549f8..06717c6 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | |||
@@ -431,7 +431,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
431 | ScenePresence sp = World.GetScenePresence(ownerID); | 431 | ScenePresence sp = World.GetScenePresence(ownerID); |
432 | if (sp != null && !sp.IsDeleted && sp.IsGod) | 432 | if (sp != null && !sp.IsDeleted && sp.IsGod) |
433 | { | 433 | { |
434 | return String.Empty; | 434 | return "Softfail"; |
435 | } | 435 | } |
436 | } | 436 | } |
437 | 437 | ||
diff --git a/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs b/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs index 9d72b1c..f4ea5e9 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs | |||
@@ -927,6 +927,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance | |||
927 | 927 | ||
928 | if(e.InnerException != null && e.InnerException is ScriptException) | 928 | if(e.InnerException != null && e.InnerException is ScriptException) |
929 | { | 929 | { |
930 | if (e.InnerException.Message == "Softfail") | ||
931 | return; | ||
932 | |||
930 | string text = e.InnerException.Message + | 933 | string text = e.InnerException.Message + |
931 | "(script: " + ScriptName + | 934 | "(script: " + ScriptName + |
932 | " event: " + data.EventName + | 935 | " event: " + data.EventName + |