check threat configuration for LSL print()

0.7.1-dev
dahlia 2011-03-31 22:56:04 -07:00
parent 8c8a0a182e
commit e974fde953
1 changed files with 6 additions and 1 deletions

View File

@ -10282,7 +10282,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
public void print(string str)
{
// yes, this is a real LSL function. See: http://wiki.secondlife.com/wiki/Print
m_log.Info("LSL print():" + str);
IOSSL_Api ossl = (IOSSL_Api)m_ScriptEngine.GetApi(m_itemID, "OSSL");
if (ossl != null)
{
ossl.CheckThreatLevel(ThreatLevel.High, "print");
m_log.Info("LSL print():" + str);
}
}
}