diff options
author | Adam Frisby | 2007-10-19 19:25:22 +0000 |
---|---|---|
committer | Adam Frisby | 2007-10-19 19:25:22 +0000 |
commit | d8cbd173f5996eef5badad8288096ac62844f967 (patch) | |
tree | 20dd2bc18b00dcad5f11fb6e22bbd9fcfab5daf1 /OpenSim/Region/Environment/Scenes | |
parent | *Added -useexecutepath to use the path of the .exe as the path to find config... (diff) | |
download | opensim-SC-d8cbd173f5996eef5badad8288096ac62844f967.zip opensim-SC-d8cbd173f5996eef5badad8288096ac62844f967.tar.gz opensim-SC-d8cbd173f5996eef5badad8288096ac62844f967.tar.bz2 opensim-SC-d8cbd173f5996eef5badad8288096ac62844f967.tar.xz |
* 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.
Diffstat (limited to 'OpenSim/Region/Environment/Scenes')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs | 36 | ||||
-rw-r--r-- | OpenSim/Region/Environment/Scenes/Scene.cs | 1 |
2 files changed, 1 insertions, 36 deletions
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 | |||
60 | /// <summary> | 60 | /// <summary> |
61 | /// | 61 | /// |
62 | /// </summary> | 62 | /// </summary> |
63 | /// <remarks>Inefficient. TODO: Fixme</remarks> | ||
64 | /// <param name="fromAgentID"></param> | ||
65 | /// <param name="toAgentID"></param> | ||
66 | /// <param name="timestamp"></param> | ||
67 | /// <param name="fromAgentName"></param> | ||
68 | /// <param name="message"></param> | ||
69 | public void InstantMessage(LLUUID fromAgentID, LLUUID fromAgentSession, LLUUID toAgentID, LLUUID imSessionID, | ||
70 | uint timestamp, string fromAgentName, string message, byte dialog) | ||
71 | { | ||
72 | if (m_scenePresences.ContainsKey(toAgentID)) | ||
73 | { | ||
74 | if (m_scenePresences.ContainsKey(fromAgentID)) | ||
75 | { | ||
76 | // Local sim message | ||
77 | ScenePresence fromAvatar = m_scenePresences[fromAgentID]; | ||
78 | ScenePresence toAvatar = m_scenePresences[toAgentID]; | ||
79 | string fromName = fromAvatar.Firstname + " " + fromAvatar.Lastname; | ||
80 | toAvatar.ControllingClient.SendInstantMessage(fromAgentID, fromAgentSession, message, toAgentID, | ||
81 | imSessionID, fromName, dialog, timestamp); | ||
82 | } | ||
83 | else | ||
84 | { | ||
85 | // Message came from a user outside the sim, ignore? | ||
86 | } | ||
87 | } | ||
88 | else | ||
89 | { | ||
90 | // Grid message | ||
91 | } | ||
92 | } | ||
93 | |||
94 | /// <summary> | ||
95 | /// | ||
96 | /// </summary> | ||
97 | /// <param name="message"></param> | 63 | /// <param name="message"></param> |
98 | /// <param name="type"></param> | 64 | /// <param name="type"></param> |
99 | /// <param name="fromPos"></param> | 65 | /// <param name="fromPos"></param> |
@@ -531,4 +497,4 @@ namespace OpenSim.Region.Environment.Scenes | |||
531 | } | 497 | } |
532 | } | 498 | } |
533 | } | 499 | } |
534 | } \ No newline at end of file | 500 | } |
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 | |||
739 | //remoteClient.OnRequestWearables += new GenericCall(this.GetInitialPrims); | 739 | //remoteClient.OnRequestWearables += new GenericCall(this.GetInitialPrims); |
740 | client.OnModifyTerrain += ModifyTerrain; | 740 | client.OnModifyTerrain += ModifyTerrain; |
741 | //client.OnChatFromViewer += SimChat; | 741 | //client.OnChatFromViewer += SimChat; |
742 | client.OnInstantMessage += InstantMessage; | ||
743 | client.OnRequestWearables += InformClientOfNeighbours; | 742 | client.OnRequestWearables += InformClientOfNeighbours; |
744 | client.OnAddPrim += AddNewPrim; | 743 | client.OnAddPrim += AddNewPrim; |
745 | client.OnUpdatePrimGroupPosition += UpdatePrimPosition; | 744 | client.OnUpdatePrimGroupPosition += UpdatePrimPosition; |