mirror of
https://github.com/opensim/opensim.git
synced 2026-07-29 12:45:41 +08:00
Allow OSSL scripts to softfail
This commit is contained in:
@@ -431,7 +431,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
ScenePresence sp = World.GetScenePresence(ownerID);
|
||||
if (sp != null && !sp.IsDeleted && sp.IsGod)
|
||||
{
|
||||
return String.Empty;
|
||||
return "Softfail";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -927,6 +927,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
|
||||
|
||||
if(e.InnerException != null && e.InnerException is ScriptException)
|
||||
{
|
||||
if (e.InnerException.Message == "Softfail")
|
||||
return;
|
||||
|
||||
string text = e.InnerException.Message +
|
||||
"(script: " + ScriptName +
|
||||
" event: " + data.EventName +
|
||||
|
||||
Reference in New Issue
Block a user