enable threat check on the new ossl method

This commit is contained in:
UbitUmarov
2020-06-19 21:17:26 +01:00
parent edf93abdbc
commit 17e7e9b354
3 changed files with 6 additions and 3 deletions

View File

@@ -5886,9 +5886,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
public LSL_Integer osReplaceAgentEnvironment(LSL_Key agentkey, LSL_Integer transition, LSL_String environment)
{
m_host.AddScriptLPS(1);
// if(!string.IsNullOrEmpty(CheckThreatLevelTest(ThreatLevel.Moderate, "osReplaceAgentEnvironment")))
// return -2;
if(!string.IsNullOrEmpty(CheckThreatLevelTest(ThreatLevel.Moderate, "osReplaceAgentEnvironment")))
return -2;
if (!UUID.TryParse(agentkey, out UUID agentid))
return -4;