diff options
author | Melanie Thielker | 2017-01-07 23:12:51 +0000 |
---|---|---|
committer | Melanie Thielker | 2017-01-07 23:12:51 +0000 |
commit | f457925f80ec1651975fc5208cbc06be3ae8891e (patch) | |
tree | 3f17df5ea98fac1f0a158f660911ae1266ff6a63 /OpenSim/Region/ScriptEngine/Shared/Instance | |
parent | Merge branch 'master' of opensimulator.org:/var/git/opensim (diff) | |
download | opensim-SC-f457925f80ec1651975fc5208cbc06be3ae8891e.zip opensim-SC-f457925f80ec1651975fc5208cbc06be3ae8891e.tar.gz opensim-SC-f457925f80ec1651975fc5208cbc06be3ae8891e.tar.bz2 opensim-SC-f457925f80ec1651975fc5208cbc06be3ae8891e.tar.xz |
Fix a compile issue and reintroduce the "GOD" script option
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Instance')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs b/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs index f4ea5e9..de0a80d 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs | |||
@@ -927,28 +927,28 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance | |||
927 | 927 | ||
928 | if(e.InnerException != null && e.InnerException is ScriptException) | 928 | if(e.InnerException != null && e.InnerException is ScriptException) |
929 | { | 929 | { |
930 | if (e.InnerException.Message == "Softfail") | 930 | if (e.InnerException.Message != "Softfail") |
931 | return; | 931 | { |
932 | 932 | string text = e.InnerException.Message + | |
933 | string text = e.InnerException.Message + | 933 | "(script: " + ScriptName + |
934 | "(script: " + ScriptName + | 934 | " event: " + data.EventName + |
935 | " event: " + data.EventName + | 935 | " at " + Part.AbsolutePosition + ")"; |
936 | " at " + Part.AbsolutePosition + ")"; | 936 | if (text.Length > 1000) |
937 | if (text.Length > 1000) | 937 | text = text.Substring(0, 1000); |
938 | text = text.Substring(0, 1000); | 938 | Engine.World.SimChat(Utils.StringToBytes(text), |
939 | Engine.World.SimChat(Utils.StringToBytes(text), | 939 | ChatTypeEnum.DebugChannel, 2147483647, |
940 | ChatTypeEnum.DebugChannel, 2147483647, | 940 | Part.AbsolutePosition, |
941 | Part.AbsolutePosition, | 941 | Part.Name, Part.UUID, false); |
942 | Part.Name, Part.UUID, false); | 942 | m_log.Debug(string.Format( |
943 | m_log.Debug(string.Format( | 943 | "[SCRIPT INSTANCE]: {0} (at event {1}, part {2} {3} at {4} in {5}", |
944 | "[SCRIPT INSTANCE]: {0} (at event {1}, part {2} {3} at {4} in {5}", | 944 | e.InnerException.Message, |
945 | e.InnerException.Message, | 945 | data.EventName, |
946 | data.EventName, | 946 | PrimName, |
947 | PrimName, | 947 | Part.UUID, |
948 | Part.UUID, | 948 | Part.AbsolutePosition, |
949 | Part.AbsolutePosition, | 949 | Part.ParentGroup.Scene.Name)); |
950 | Part.ParentGroup.Scene.Name)); | 950 | |
951 | 951 | } | |
952 | } | 952 | } |
953 | else | 953 | else |
954 | { | 954 | { |