aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/OptionalModules
diff options
context:
space:
mode:
authorAdam Frisby2009-04-09 13:05:01 +0000
committerAdam Frisby2009-04-09 13:05:01 +0000
commit162dd5c65cf94ded47d3cf55ad4160b590413e98 (patch)
treeddee271bc99374e48903a73762d15963ef2083dd /OpenSim/Region/OptionalModules
parent* Added additional debug testing info to Scene (diff)
downloadopensim-SC-162dd5c65cf94ded47d3cf55ad4160b590413e98.zip
opensim-SC-162dd5c65cf94ded47d3cf55ad4160b590413e98.tar.gz
opensim-SC-162dd5c65cf94ded47d3cf55ad4160b590413e98.tar.bz2
opensim-SC-162dd5c65cf94ded47d3cf55ad4160b590413e98.tar.xz
* World.OnChat no longer fires if there is no chat text (prevents the typing animation packet from firing OnChat)
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/OptionalModules/Scripting/Minimodule/World.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/OpenSim/Region/OptionalModules/Scripting/Minimodule/World.cs b/OpenSim/Region/OptionalModules/Scripting/Minimodule/World.cs
index 802d984..34f66d8 100644
--- a/OpenSim/Region/OptionalModules/Scripting/Minimodule/World.cs
+++ b/OpenSim/Region/OptionalModules/Scripting/Minimodule/World.cs
@@ -37,8 +37,6 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule
37{ 37{
38 public class World : IWorld 38 public class World : IWorld
39 { 39 {
40 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
41
42 private readonly Scene m_internalScene; 40 private readonly Scene m_internalScene;
43 private readonly Heightmap m_heights; 41 private readonly Heightmap m_heights;
44 42
@@ -94,6 +92,9 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule
94 92
95 private void HandleChatPacket(OSChatMessage chat) 93 private void HandleChatPacket(OSChatMessage chat)
96 { 94 {
95 if(string.IsNullOrEmpty(chat.Message))
96 return;
97
97 // Object? 98 // Object?
98 if (chat.Sender == null && chat.SenderObject != null) 99 if (chat.Sender == null && chat.SenderObject != null)
99 { 100 {