From 6e505a7d979e7ab27d98c16d6d38c3b3a4088e04 Mon Sep 17 00:00:00 2001 From: onefang Date: Fri, 27 Aug 2021 01:58:51 +1000 Subject: Properly use ScriptBaseClass.DEBUG_CHANNEL. I got it wrong last time. --- OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'OpenSim/Region/ScriptEngine') diff --git a/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs b/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs index 5425a24..049b510 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs @@ -947,12 +947,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance { ScenePresence sp = Engine.World.GetScenePresence(Part.OwnerID); if (sp != null && !sp.IsNPC) - Engine.World.SimChatToAgent(Part.OwnerID, Utils.StringToBytes(text), (int) ChatTypeEnum.DebugChannel, Part.AbsolutePosition, + Engine.World.SimChatToAgent(Part.OwnerID, Utils.StringToBytes(text), ScriptBaseClass.DEBUG_CHANNEL, Part.AbsolutePosition, Part.Name, Part.UUID, false); } else Engine.World.SimChat(Utils.StringToBytes(text), - ChatTypeEnum.DebugChannel, 2147483647, + ChatTypeEnum.DebugChannel, ScriptBaseClass.DEBUG_CHANNEL, Part.AbsolutePosition, Part.Name, Part.UUID, false); m_log.Debug(string.Format( @@ -974,7 +974,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance if (text.Length > 1000) text = text.Substring(0, 1000); Engine.World.SimChat(Utils.StringToBytes(text), - ChatTypeEnum.DebugChannel, 2147483647, + ChatTypeEnum.DebugChannel, ScriptBaseClass.DEBUG_CHANNEL, Part.AbsolutePosition, Part.Name, Part.UUID, false); -- cgit v1.1