diff options
author | UbitUmarov | 2015-11-20 00:01:13 +0000 |
---|---|---|
committer | UbitUmarov | 2015-11-20 00:01:13 +0000 |
commit | 278687b1e8bed66e205497ebdef839280dfa5cd2 (patch) | |
tree | 9c57a67637d8da11bc03995c0f072f7d424bb791 /OpenSim/Region/ScriptEngine/Shared/Api/Implementation | |
parent | clean code a bit (diff) | |
download | opensim-SC_OLD-278687b1e8bed66e205497ebdef839280dfa5cd2.zip opensim-SC_OLD-278687b1e8bed66e205497ebdef839280dfa5cd2.tar.gz opensim-SC_OLD-278687b1e8bed66e205497ebdef839280dfa5cd2.tar.bz2 opensim-SC_OLD-278687b1e8bed66e205497ebdef839280dfa5cd2.tar.xz |
remove duplicate object chat messages ( mantis 7745 ),fix llRegionSay, this are still merge issues
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index c8deec5..e2b3ef4 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -1264,8 +1264,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
1264 | 1264 | ||
1265 | m_host.AddScriptLPS(1); | 1265 | m_host.AddScriptLPS(1); |
1266 | 1266 | ||
1267 | World.SimChat(Utils.StringToBytes(text), | 1267 | // debug channel is also sent to avatars |
1268 | ChatTypeEnum.Region, channelID, m_host.ParentGroup.RootPart.AbsolutePosition, m_host.Name, m_host.UUID, false); | 1268 | if (channelID == ScriptBaseClass.DEBUG_CHANNEL) |
1269 | { | ||
1270 | World.SimChat(Utils.StringToBytes(text), | ||
1271 | ChatTypeEnum.Shout, channelID, m_host.ParentGroup.RootPart.AbsolutePosition, m_host.Name, m_host.UUID, true); | ||
1272 | |||
1273 | } | ||
1269 | 1274 | ||
1270 | IWorldComm wComm = m_ScriptEngine.World.RequestModuleInterface<IWorldComm>(); | 1275 | IWorldComm wComm = m_ScriptEngine.World.RequestModuleInterface<IWorldComm>(); |
1271 | if (wComm != null) | 1276 | if (wComm != null) |
@@ -1280,16 +1285,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
1280 | m_host.AddScriptLPS(1); | 1285 | m_host.AddScriptLPS(1); |
1281 | 1286 | ||
1282 | if (channel == ScriptBaseClass.DEBUG_CHANNEL) | 1287 | if (channel == ScriptBaseClass.DEBUG_CHANNEL) |
1283 | { | ||
1284 | return; | 1288 | return; |
1285 | } | ||
1286 | 1289 | ||
1287 | UUID TargetID; | 1290 | UUID TargetID; |
1288 | UUID.TryParse(target, out TargetID); | 1291 | UUID.TryParse(target, out TargetID); |
1289 | 1292 | ||
1290 | World.SimChatToAgent(TargetID, Utils.StringToBytes(msg), | ||
1291 | channel, m_host.ParentGroup.RootPart.AbsolutePosition, m_host.Name, m_host.UUID, true); | ||
1292 | |||
1293 | IWorldComm wComm = m_ScriptEngine.World.RequestModuleInterface<IWorldComm>(); | 1293 | IWorldComm wComm = m_ScriptEngine.World.RequestModuleInterface<IWorldComm>(); |
1294 | if (wComm != null) | 1294 | if (wComm != null) |
1295 | wComm.DeliverMessageTo(TargetID, channel, m_host.AbsolutePosition, m_host.Name, m_host.UUID, msg); | 1295 | wComm.DeliverMessageTo(TargetID, channel, m_host.AbsolutePosition, m_host.Name, m_host.UUID, msg); |