a few changes on chat and dialog from udp/client

This commit is contained in:
UbitUmarov
2022-06-19 16:03:38 +01:00
parent 2d1e5eb5ac
commit 9af568307e
5 changed files with 57 additions and 64 deletions

View File

@@ -261,19 +261,17 @@ namespace OpenSim.Region.OptionalModules.World.NPC
if(OnChatFromClient == null)
return;
if (channel == 0)
{
message = message.Trim();
if (string.IsNullOrEmpty(message))
return;
}
message = message.Trim();
if (channel == 0 && message.Length == 0)
return;
OSChatMessage chatFromClient = new OSChatMessage()
{
Channel = channel,
From = Name,
Message = message,
Position = StartPos,
//Position = StartPos,
Position = this.Position,
Scene = m_scene,
Sender = this,
SenderUUID = AgentId,