aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs
diff options
context:
space:
mode:
authorlbsa712007-09-20 23:28:08 +0000
committerlbsa712007-09-20 23:28:08 +0000
commit101369e25ad4e72233e4855be4b82d1647233a6c (patch)
tree58b2a7dfcf83d474cba77f8d16f6c0de4d2f4ec2 /OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs
parentRev 1971 : The Lbsa71 vintage commit (diff)
downloadopensim-SC-101369e25ad4e72233e4855be4b82d1647233a6c.zip
opensim-SC-101369e25ad4e72233e4855be4b82d1647233a6c.tar.gz
opensim-SC-101369e25ad4e72233e4855be4b82d1647233a6c.tar.bz2
opensim-SC-101369e25ad4e72233e4855be4b82d1647233a6c.tar.xz
* Some more presence refactoring
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs b/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs
index c63424a..91b9634 100644
--- a/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs
+++ b/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs
@@ -69,13 +69,13 @@ namespace OpenSim.Region.Environment.Scenes
69 public void InstantMessage(LLUUID fromAgentID, LLUUID fromAgentSession, LLUUID toAgentID, LLUUID imSessionID, 69 public void InstantMessage(LLUUID fromAgentID, LLUUID fromAgentSession, LLUUID toAgentID, LLUUID imSessionID,
70 uint timestamp, string fromAgentName, string message, byte dialog) 70 uint timestamp, string fromAgentName, string message, byte dialog)
71 { 71 {
72 if (Avatars.ContainsKey(toAgentID)) 72 if (m_scenePresences.ContainsKey(toAgentID))
73 { 73 {
74 if (Avatars.ContainsKey(fromAgentID)) 74 if (m_scenePresences.ContainsKey(fromAgentID))
75 { 75 {
76 // Local sim message 76 // Local sim message
77 ScenePresence fromAvatar = Avatars[fromAgentID]; 77 ScenePresence fromAvatar = m_scenePresences[fromAgentID];
78 ScenePresence toAvatar = Avatars[toAgentID]; 78 ScenePresence toAvatar = m_scenePresences[toAgentID];
79 string fromName = fromAvatar.Firstname + " " + fromAvatar.Lastname; 79 string fromName = fromAvatar.Firstname + " " + fromAvatar.Lastname;
80 toAvatar.ControllingClient.SendInstantMessage(fromAgentID, fromAgentSession, message, toAgentID, 80 toAvatar.ControllingClient.SendInstantMessage(fromAgentID, fromAgentSession, message, toAgentID,
81 imSessionID, fromName, dialog, timestamp); 81 imSessionID, fromName, dialog, timestamp);