change chattype on llRegionSayTo when sending to avatar viewer only.

Thanks Royale for pointing this
0.9.1.0-post-fixes
UbitUmarov 2018-10-18 15:03:19 +01:00
parent 96acb48334
commit 877a78ce91
2 changed files with 2 additions and 1 deletions

View File

@ -38,6 +38,7 @@ namespace OpenSim.Framework
DebugChannel = 6,
Region = 7,
Owner = 8,
Direct = 9, //llRegionSayTo
Broadcast = 0xFF
}
}

View File

@ -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;
}