mirror of
https://github.com/opensim/opensim.git
synced 2026-08-09 10:46:00 +08:00
a few changes cosmetic changes around OSChatMessage...
This commit is contained in:
@@ -224,7 +224,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Chat
|
||||
switch (sourceType)
|
||||
{
|
||||
case ChatSourceType.Agent:
|
||||
ScenePresence avatar = (scene as Scene).GetScenePresence(c.Sender.AgentId);
|
||||
ScenePresence avatar = scene.GetScenePresence(c.Sender.AgentId);
|
||||
if(avatar == null)
|
||||
return;
|
||||
fromPos = avatar.AbsolutePosition;
|
||||
@@ -355,7 +355,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Chat
|
||||
ownerID = c.Sender.AgentId;
|
||||
sourceType = ChatSourceType.Agent;
|
||||
}
|
||||
else if (!c.SenderUUID.IsZero())
|
||||
else if (c.SenderUUID.IsNotZero())
|
||||
{
|
||||
if(c.SenderObject == null)
|
||||
return;
|
||||
@@ -444,7 +444,6 @@ namespace OpenSim.Region.CoreModules.Avatar.Chat
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: should change so the message is sent through the avatar rather than direct to the ClientView
|
||||
presence.ControllingClient.SendChatMessage(
|
||||
message, (byte) type, fromPos, fromName,
|
||||
fromAgentID, ownerID, (byte)src, (byte)ChatAudibleLevel.Fully);
|
||||
|
||||
Reference in New Issue
Block a user