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,9 +10282,14 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
public void print(string str) public void print(string str)
{ {
// yes, this is a real LSL function. See: http://wiki.secondlife.com/wiki/Print // yes, this is a real LSL function. See: http://wiki.secondlife.com/wiki/Print
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); m_log.Info("LSL print():" + str);
} }
} }
}
public class NotecardCache public class NotecardCache
{ {