From 877a78ce91a96118009cd1c1e27a99f0baef49ae Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Thu, 18 Oct 2018 15:03:19 +0100 Subject: change chattype on llRegionSayTo when sending to avatar viewer only. Thanks Royale for pointing this --- OpenSim/Framework/ChatTypeEnum.cs | 1 + OpenSim/Region/CoreModules/Scripting/WorldComm/WorldCommModule.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'OpenSim') diff --git a/OpenSim/Framework/ChatTypeEnum.cs b/OpenSim/Framework/ChatTypeEnum.cs index b7e4e7c..f281f5c 100644 --- a/OpenSim/Framework/ChatTypeEnum.cs +++ b/OpenSim/Framework/ChatTypeEnum.cs @@ -38,6 +38,7 @@ namespace OpenSim.Framework DebugChannel = 6, Region = 7, Owner = 8, + Direct = 9, //llRegionSayTo Broadcast = 0xFF } } \ No newline at end of file diff --git a/OpenSim/Region/CoreModules/Scripting/WorldComm/WorldCommModule.cs b/OpenSim/Region/CoreModules/Scripting/WorldComm/WorldCommModule.cs index 99e50ac..3f4d412 100644 --- a/OpenSim/Region/CoreModules/Scripting/WorldComm/WorldCommModule.cs +++ b/OpenSim/Region/CoreModules/Scripting/WorldComm/WorldCommModule.cs @@ -392,7 +392,7 @@ namespace OpenSim.Region.CoreModules.Scripting.WorldComm if (channel == 0) { // Channel 0 goes to viewer ONLY - m_scene.SimChat(Utils.StringToBytes(msg), ChatTypeEnum.Broadcast, 0, pos, name, id, target, false, false); + m_scene.SimChat(Utils.StringToBytes(msg), ChatTypeEnum.Direct, 0, pos, name, id, target, false, false); return; } -- cgit v1.1