diff options
author | Jeff Ames | 2007-12-10 02:29:42 +0000 |
---|---|---|
committer | Jeff Ames | 2007-12-10 02:29:42 +0000 |
commit | e278d07220f976dec730890e4853ead58f83502a (patch) | |
tree | 14873c24f88ae4e32e75ec286df34de00c0db94f /OpenSim/Region/Environment/Modules/InstantMessageModule.cs | |
parent | * Hooked up the GridComm event ChildDataUpdate to the scene. (diff) | |
download | opensim-SC_OLD-e278d07220f976dec730890e4853ead58f83502a.zip opensim-SC_OLD-e278d07220f976dec730890e4853ead58f83502a.tar.gz opensim-SC_OLD-e278d07220f976dec730890e4853ead58f83502a.tar.bz2 opensim-SC_OLD-e278d07220f976dec730890e4853ead58f83502a.tar.xz |
refactored ChatModule a bit.
misc cleanup and code convention fixes.
Diffstat (limited to 'OpenSim/Region/Environment/Modules/InstantMessageModule.cs')
-rw-r--r-- | OpenSim/Region/Environment/Modules/InstantMessageModule.cs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/OpenSim/Region/Environment/Modules/InstantMessageModule.cs b/OpenSim/Region/Environment/Modules/InstantMessageModule.cs index 23dd0d9..cf6a94d 100644 --- a/OpenSim/Region/Environment/Modules/InstantMessageModule.cs +++ b/OpenSim/Region/Environment/Modules/InstantMessageModule.cs | |||
@@ -65,12 +65,12 @@ namespace OpenSim.Region.Environment.Modules | |||
65 | LLUUID imSessionID, uint timestamp, string fromAgentName, | 65 | LLUUID imSessionID, uint timestamp, string fromAgentName, |
66 | string message, byte dialog) | 66 | string message, byte dialog) |
67 | { | 67 | { |
68 | foreach (Scene m_scene in m_scenes) | 68 | foreach (Scene scene in m_scenes) |
69 | { | 69 | { |
70 | if (m_scene.Entities.ContainsKey(toAgentID) && m_scene.Entities[toAgentID] is ScenePresence) | 70 | if (scene.Entities.ContainsKey(toAgentID) && scene.Entities[toAgentID] is ScenePresence) |
71 | { | 71 | { |
72 | // Local Message | 72 | // Local message |
73 | ScenePresence user = (ScenePresence) m_scene.Entities[toAgentID]; | 73 | ScenePresence user = (ScenePresence) scene.Entities[toAgentID]; |
74 | if (!user.IsChildAgent) | 74 | if (!user.IsChildAgent) |
75 | { | 75 | { |
76 | user.ControllingClient.SendInstantMessage(fromAgentID, fromAgentSession, message, | 76 | user.ControllingClient.SendInstantMessage(fromAgentID, fromAgentSession, message, |
@@ -83,6 +83,7 @@ namespace OpenSim.Region.Environment.Modules | |||
83 | } | 83 | } |
84 | 84 | ||
85 | // Still here, try send via Grid | 85 | // Still here, try send via Grid |
86 | // TODO | ||
86 | } | 87 | } |
87 | 88 | ||
88 | public void PostInitialise() | 89 | public void PostInitialise() |