aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Environment/Scenes/EventManager.cs28
1 files changed, 6 insertions, 22 deletions
diff --git a/OpenSim/Region/Environment/Scenes/EventManager.cs b/OpenSim/Region/Environment/Scenes/EventManager.cs
index c629faf..99aac93 100644
--- a/OpenSim/Region/Environment/Scenes/EventManager.cs
+++ b/OpenSim/Region/Environment/Scenes/EventManager.cs
@@ -135,13 +135,9 @@ namespace OpenSim.Region.Environment.Scenes
135 135
136 public event SignificantClientMovement OnSignificantClientMovement; 136 public event SignificantClientMovement OnSignificantClientMovement;
137 137
138 public delegate void NewGridInstantMessage(GridInstantMessage message); 138 public delegate void NewGridInstantMessage(GridInstantMessage message, InstantMessageReceiver whichModule);
139 139
140 public event NewGridInstantMessage OnGridInstantMessageToIMModule; 140 public event NewGridInstantMessage OnGridInstantMessage;
141
142 public event NewGridInstantMessage OnGridInstantMessageToFriendsModule;
143
144 public event NewGridInstantMessage OnGridInstantMessageToGroupsModule;
145 141
146 public delegate void ClientClosed(UUID clientID); 142 public delegate void ClientClosed(UUID clientID);
147 143
@@ -346,8 +342,7 @@ namespace OpenSim.Region.Environment.Scenes
346 private LandObjectAdded handlerLandObjectAdded = null; //OnLandObjectAdded; 342 private LandObjectAdded handlerLandObjectAdded = null; //OnLandObjectAdded;
347 private LandObjectRemoved handlerLandObjectRemoved = null; //OnLandObjectRemoved; 343 private LandObjectRemoved handlerLandObjectRemoved = null; //OnLandObjectRemoved;
348 private AvatarEnteringNewParcel handlerAvatarEnteringNewParcel = null; //OnAvatarEnteringNewParcel; 344 private AvatarEnteringNewParcel handlerAvatarEnteringNewParcel = null; //OnAvatarEnteringNewParcel;
349 private NewGridInstantMessage handlerGridInstantMessageToIM = null; //OnGridInstantMessageToIMModule; 345 private NewGridInstantMessage handlerGridInstantMessage = null; //OnGridInstantMessage;
350 private NewGridInstantMessage handlerGridInstantMessageToFriends = null; //OnGridInstantMessageToFriendsModule;
351 private ClientClosed handlerClientClosed = null; //OnClientClosed; 346 private ClientClosed handlerClientClosed = null; //OnClientClosed;
352 private OnMakeChildAgentDelegate handlerMakeChildAgent = null; //OnMakeChildAgent; 347 private OnMakeChildAgentDelegate handlerMakeChildAgent = null; //OnMakeChildAgent;
353 private OnMakeRootAgentDelegate handlerMakeRootAgent = null; //OnMakeRootAgent; 348 private OnMakeRootAgentDelegate handlerMakeRootAgent = null; //OnMakeRootAgent;
@@ -635,21 +630,10 @@ namespace OpenSim.Region.Environment.Scenes
635 ///<param name="whichModule">A bit vector containing the modules to send the message to</param> 630 ///<param name="whichModule">A bit vector containing the modules to send the message to</param>
636 public void TriggerGridInstantMessage(GridInstantMessage message, InstantMessageReceiver whichModule) 631 public void TriggerGridInstantMessage(GridInstantMessage message, InstantMessageReceiver whichModule)
637 { 632 {
638 if ((whichModule & InstantMessageReceiver.IMModule) != 0) 633 handlerGridInstantMessage = OnGridInstantMessage;
639 { 634 if (handlerGridInstantMessage != null)
640 handlerGridInstantMessageToIM = OnGridInstantMessageToIMModule;
641 if (handlerGridInstantMessageToIM != null)
642 {
643 handlerGridInstantMessageToIM(message);
644 }
645 }
646 if ((whichModule & InstantMessageReceiver.FriendsModule) != 0)
647 { 635 {
648 handlerGridInstantMessageToFriends = OnGridInstantMessageToFriendsModule; 636 handlerGridInstantMessage(message, whichModule);
649 if (handlerGridInstantMessageToFriends != null)
650 {
651 handlerGridInstantMessageToFriends(message);
652 }
653 } 637 }
654 } 638 }
655 639