diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 68b645e..71d63bb 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -100,6 +100,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
100 | protected int m_notecardLineReadCharsMax = 255; | 100 | protected int m_notecardLineReadCharsMax = 255; |
101 | protected int m_scriptConsoleChannel = 0; | 101 | protected int m_scriptConsoleChannel = 0; |
102 | protected bool m_scriptConsoleChannelEnabled = false; | 102 | protected bool m_scriptConsoleChannelEnabled = false; |
103 | protected bool m_debuggerSafe = false; | ||
103 | protected IUrlModule m_UrlModule = null; | 104 | protected IUrlModule m_UrlModule = null; |
104 | protected Dictionary<UUID, UserInfoCacheEntry> m_userInfoCache = | 105 | protected Dictionary<UUID, UserInfoCacheEntry> m_userInfoCache = |
105 | new Dictionary<UUID, UserInfoCacheEntry>(); | 106 | new Dictionary<UUID, UserInfoCacheEntry>(); |
@@ -110,6 +111,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
110 | m_host = host; | 111 | m_host = host; |
111 | m_localID = localID; | 112 | m_localID = localID; |
112 | m_itemID = itemID; | 113 | m_itemID = itemID; |
114 | m_debuggerSafe = m_ScriptEngine.Config.GetBoolean("DebuggerSafe", false); | ||
113 | 115 | ||
114 | m_ScriptDelayFactor = | 116 | m_ScriptDelayFactor = |
115 | m_ScriptEngine.Config.GetFloat("ScriptDelayFactor", 1.0f); | 117 | m_ScriptEngine.Config.GetFloat("ScriptDelayFactor", 1.0f); |
@@ -3220,13 +3222,15 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
3220 | return m_host.OwnerID.ToString(); | 3222 | return m_host.OwnerID.ToString(); |
3221 | } | 3223 | } |
3222 | 3224 | ||
3223 | [DebuggerNonUserCode] | ||
3224 | public void llInstantMessage(string user, string message) | 3225 | public void llInstantMessage(string user, string message) |
3225 | { | 3226 | { |
3226 | UUID result; | 3227 | UUID result; |
3227 | if (!UUID.TryParse(user, out result)) | 3228 | if (!UUID.TryParse(user, out result)) |
3228 | { | 3229 | { |
3229 | throw new Exception(String.Format("An invalid key of '{0} was passed to llInstantMessage", user)); | 3230 | if (!m_debuggerSafe) |
3231 | { | ||
3232 | throw new Exception(String.Format("An invalid key of '{0} was passed to llInstantMessage", user)); | ||
3233 | } | ||
3230 | return; | 3234 | return; |
3231 | } | 3235 | } |
3232 | 3236 | ||