From d8cbd173f5996eef5badad8288096ac62844f967 Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Fri, 19 Oct 2007 19:25:22 +0000 Subject: * Instant Message functionality moved into a Region Modules * You can now send instant messages to any user on the simulator, regardless of what region they are in. --- .../Environment/Scenes/Scene.PacketHandlers.cs | 36 +--------------------- 1 file changed, 1 insertion(+), 35 deletions(-) (limited to 'OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs') diff --git a/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs b/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs index 43a9d86..df8b190 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs @@ -60,40 +60,6 @@ namespace OpenSim.Region.Environment.Scenes /// /// /// - /// Inefficient. TODO: Fixme - /// - /// - /// - /// - /// - public void InstantMessage(LLUUID fromAgentID, LLUUID fromAgentSession, LLUUID toAgentID, LLUUID imSessionID, - uint timestamp, string fromAgentName, string message, byte dialog) - { - if (m_scenePresences.ContainsKey(toAgentID)) - { - if (m_scenePresences.ContainsKey(fromAgentID)) - { - // Local sim message - ScenePresence fromAvatar = m_scenePresences[fromAgentID]; - ScenePresence toAvatar = m_scenePresences[toAgentID]; - string fromName = fromAvatar.Firstname + " " + fromAvatar.Lastname; - toAvatar.ControllingClient.SendInstantMessage(fromAgentID, fromAgentSession, message, toAgentID, - imSessionID, fromName, dialog, timestamp); - } - else - { - // Message came from a user outside the sim, ignore? - } - } - else - { - // Grid message - } - } - - /// - /// - /// /// /// /// @@ -531,4 +497,4 @@ namespace OpenSim.Region.Environment.Scenes } } } -} \ No newline at end of file +} -- cgit v1.1