From 162dd5c65cf94ded47d3cf55ad4160b590413e98 Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Thu, 9 Apr 2009 13:05:01 +0000 Subject: * World.OnChat no longer fires if there is no chat text (prevents the typing animation packet from firing OnChat) --- OpenSim/Region/OptionalModules/Scripting/Minimodule/World.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'OpenSim') 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 { public class World : IWorld { - private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); - private readonly Scene m_internalScene; private readonly Heightmap m_heights; @@ -94,6 +92,9 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule private void HandleChatPacket(OSChatMessage chat) { + if(string.IsNullOrEmpty(chat.Message)) + return; + // Object? if (chat.Sender == null && chat.SenderObject != null) { -- cgit v1.1