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 +---------------------
OpenSim/Region/Environment/Scenes/Scene.cs | 1 -
2 files changed, 1 insertion(+), 36 deletions(-)
(limited to 'OpenSim/Region/Environment/Scenes')
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
+}
diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs
index 83432d4..ab94842 100644
--- a/OpenSim/Region/Environment/Scenes/Scene.cs
+++ b/OpenSim/Region/Environment/Scenes/Scene.cs
@@ -739,7 +739,6 @@ namespace OpenSim.Region.Environment.Scenes
//remoteClient.OnRequestWearables += new GenericCall(this.GetInitialPrims);
client.OnModifyTerrain += ModifyTerrain;
//client.OnChatFromViewer += SimChat;
- client.OnInstantMessage += InstantMessage;
client.OnRequestWearables += InformClientOfNeighbours;
client.OnAddPrim += AddNewPrim;
client.OnUpdatePrimGroupPosition += UpdatePrimPosition;
--
cgit v1.1