mirror of
https://github.com/opensim/opensim.git
synced 2026-08-09 02:36:00 +08:00
a few changes on chat and dialog from udp/client
This commit is contained in:
@@ -238,8 +238,6 @@ namespace OpenSim.Region.OptionalModules.Avatar.Concierge
|
||||
{
|
||||
// replacing ChatModule: need to redistribute
|
||||
// ChatFromClient to interested subscribers
|
||||
c = FixPositionOfChatMessage(c);
|
||||
|
||||
Scene scene = (Scene)c.Scene;
|
||||
scene.EventManager.TriggerOnChatFromClient(sender, c);
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user