Allow OSSL scripts to softfail
parent
e2167716aa
commit
e5244fe708
|
@ -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 +
|
||||
|
|
Loading…
Reference in New Issue