mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
* World.OnChat no longer fires if there is no chat text (prevents the typing animation packet from firing OnChat)
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user