aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorUbitUmarov2018-10-18 15:03:19 +0100
committerUbitUmarov2018-10-18 15:04:54 +0100
commit877a78ce91a96118009cd1c1e27a99f0baef49ae (patch)
treec25968911270241caf7fc7505c5af5d0c6e44a06
parentmantis 7391: deliver llregionSayTo to all scripts on prim that match target s... (diff)
downloadopensim-SC-877a78ce91a96118009cd1c1e27a99f0baef49ae.zip
opensim-SC-877a78ce91a96118009cd1c1e27a99f0baef49ae.tar.gz
opensim-SC-877a78ce91a96118009cd1c1e27a99f0baef49ae.tar.bz2
opensim-SC-877a78ce91a96118009cd1c1e27a99f0baef49ae.tar.xz
change chattype on llRegionSayTo when sending to avatar viewer only.
Thanks Royale for pointing this
Diffstat (limited to '')
-rw-r--r--OpenSim/Framework/ChatTypeEnum.cs1
-rw-r--r--OpenSim/Region/CoreModules/Scripting/WorldComm/WorldCommModule.cs2
2 files changed, 2 insertions, 1 deletions
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
38 DebugChannel = 6, 38 DebugChannel = 6,
39 Region = 7, 39 Region = 7,
40 Owner = 8, 40 Owner = 8,
41 Direct = 9, //llRegionSayTo
41 Broadcast = 0xFF 42 Broadcast = 0xFF
42 } 43 }
43} \ No newline at end of file 44} \ 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
392 if (channel == 0) 392 if (channel == 0)
393 { 393 {
394 // Channel 0 goes to viewer ONLY 394 // Channel 0 goes to viewer ONLY
395 m_scene.SimChat(Utils.StringToBytes(msg), ChatTypeEnum.Broadcast, 0, pos, name, id, target, false, false); 395 m_scene.SimChat(Utils.StringToBytes(msg), ChatTypeEnum.Direct, 0, pos, name, id, target, false, false);
396 return; 396 return;
397 } 397 }
398 398