diff options
author | dahlia | 2011-03-31 22:56:04 -0700 |
---|---|---|
committer | dahlia | 2011-03-31 22:56:04 -0700 |
commit | e974fde95313e17c239e4e35487da897f725a904 (patch) | |
tree | ca7437393addc7daef254130e9abbb71235e125d /OpenSim/Region/ScriptEngine/Shared | |
parent | implement LSL "print()" API function (diff) | |
download | opensim-SC-e974fde95313e17c239e4e35487da897f725a904.zip opensim-SC-e974fde95313e17c239e4e35487da897f725a904.tar.gz opensim-SC-e974fde95313e17c239e4e35487da897f725a904.tar.bz2 opensim-SC-e974fde95313e17c239e4e35487da897f725a904.tar.xz |
check threat configuration for LSL print()
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index e3e16bd..43b0da3 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -10282,7 +10282,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
10282 | public void print(string str) | 10282 | public void print(string str) |
10283 | { | 10283 | { |
10284 | // yes, this is a real LSL function. See: http://wiki.secondlife.com/wiki/Print | 10284 | // yes, this is a real LSL function. See: http://wiki.secondlife.com/wiki/Print |
10285 | m_log.Info("LSL print():" + str); | 10285 | IOSSL_Api ossl = (IOSSL_Api)m_ScriptEngine.GetApi(m_itemID, "OSSL"); |
10286 | if (ossl != null) | ||
10287 | { | ||
10288 | ossl.CheckThreatLevel(ThreatLevel.High, "print"); | ||
10289 | m_log.Info("LSL print():" + str); | ||
10290 | } | ||
10286 | } | 10291 | } |
10287 | } | 10292 | } |
10288 | 10293 | ||