Merge branch 'master' of ssh://opensimulator.org/var/git/opensim

0.8.2-post-fixes
Diva Canto 2015-08-14 19:20:20 -07:00
commit 83059724ee
5 changed files with 15283 additions and 15280 deletions

View File

@ -274,17 +274,20 @@ namespace OpenSim.Region.CoreModules.Avatar.Chat
string fromName = c.From; string fromName = c.From;
UUID fromID = UUID.Zero; UUID fromID = UUID.Zero;
UUID ownerID = UUID.Zero;
ChatSourceType sourceType = ChatSourceType.Object; ChatSourceType sourceType = ChatSourceType.Object;
if (null != c.Sender) if (null != c.Sender)
{ {
ScenePresence avatar = (c.Scene as Scene).GetScenePresence(c.Sender.AgentId); ScenePresence avatar = (c.Scene as Scene).GetScenePresence(c.Sender.AgentId);
fromID = c.Sender.AgentId; fromID = c.Sender.AgentId;
fromName = avatar.Name; fromName = avatar.Name;
ownerID = c.Sender.AgentId;
sourceType = ChatSourceType.Agent; sourceType = ChatSourceType.Agent;
} }
else if (c.SenderUUID != UUID.Zero) else if (c.SenderUUID != UUID.Zero)
{ {
fromID = c.SenderUUID; fromID = c.SenderUUID;
ownerID = ((SceneObjectPart)c.SenderObject).OwnerID;
} }
// m_log.DebugFormat("[CHAT] Broadcast: fromID {0} fromName {1}, cType {2}, sType {3}", fromID, fromName, cType, sourceType); // m_log.DebugFormat("[CHAT] Broadcast: fromID {0} fromName {1}, cType {2}, sType {3}", fromID, fromName, cType, sourceType);
@ -302,7 +305,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Chat
return; return;
client.SendChatMessage( client.SendChatMessage(
c.Message, (byte)cType, CenterOfRegion, fromName, fromID, fromID, c.Message, (byte)cType, CenterOfRegion, fromName, fromID, ownerID,
(byte)sourceType, (byte)ChatAudibleLevel.Fully); (byte)sourceType, (byte)ChatAudibleLevel.Fully);
receiverIDs.Add(client.AgentId); receiverIDs.Add(client.AgentId);

File diff suppressed because it is too large Load Diff

Binary file not shown.

Binary file not shown.

Binary file not shown.