* World.OnChat no longer fires if there is no chat text (prevents the typing animation packet from firing OnChat)

0.6.5-rc1
Adam Frisby 2009-04-09 13:05:01 +00:00
parent 03984e7304
commit 162dd5c65c
1 changed files with 3 additions and 2 deletions

View File

@ -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)
{