mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 08:55:56 +08:00
a few changes on chat and dialog from udp/client
This commit is contained in:
@@ -162,20 +162,8 @@ namespace OpenSim.Region.CoreModules.Avatar.Chat
|
||||
client.OnChatFromClient += OnChatFromClient;
|
||||
}
|
||||
|
||||
protected virtual OSChatMessage FixPositionOfChatMessage(OSChatMessage c)
|
||||
{
|
||||
ScenePresence avatar;
|
||||
Scene scene = (Scene)c.Scene;
|
||||
if ((avatar = scene.GetScenePresence(c.Sender.AgentId)) != null)
|
||||
c.Position = avatar.AbsolutePosition;
|
||||
|
||||
return c;
|
||||
}
|
||||
|
||||
public virtual void OnChatFromClient(Object sender, OSChatMessage c)
|
||||
{
|
||||
c = FixPositionOfChatMessage(c);
|
||||
|
||||
// redistribute to interested subscribers
|
||||
Scene scene = (Scene)c.Scene;
|
||||
scene.EventManager.TriggerOnChatFromClient(sender, c);
|
||||
|
||||
Reference in New Issue
Block a user