aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Framework')
-rw-r--r--OpenSim/Region/Framework/Scenes/EventManager.cs10
1 files changed, 6 insertions, 4 deletions
diff --git a/OpenSim/Region/Framework/Scenes/EventManager.cs b/OpenSim/Region/Framework/Scenes/EventManager.cs
index 96da2c3..bf9ad65 100644
--- a/OpenSim/Region/Framework/Scenes/EventManager.cs
+++ b/OpenSim/Region/Framework/Scenes/EventManager.cs
@@ -73,8 +73,10 @@ namespace OpenSim.Region.Framework.Scenes
73 /// </summary> 73 /// </summary>
74 public event OnNewClientDelegate OnNewClient; 74 public event OnNewClientDelegate OnNewClient;
75 75
76 public delegate void OnClientLoginDelegate(IClientAPI client); 76 /// <summary>
77 public event OnClientLoginDelegate OnClientLogin; 77 /// Fired if the client entering this sim is doing so as a new login
78 /// </summary>
79 public event Action<IClientAPI> OnClientLogin;
78 80
79 public delegate void OnNewPresenceDelegate(ScenePresence presence); 81 public delegate void OnNewPresenceDelegate(ScenePresence presence);
80 82
@@ -651,10 +653,10 @@ namespace OpenSim.Region.Framework.Scenes
651 653
652 public void TriggerOnClientLogin(IClientAPI client) 654 public void TriggerOnClientLogin(IClientAPI client)
653 { 655 {
654 OnClientLoginDelegate handlerClientLogin = OnClientLogin; 656 Action<IClientAPI> handlerClientLogin = OnClientLogin;
655 if (handlerClientLogin != null) 657 if (handlerClientLogin != null)
656 { 658 {
657 foreach (OnClientLoginDelegate d in handlerClientLogin.GetInvocationList()) 659 foreach (Action<IClientAPI> d in handlerClientLogin.GetInvocationList())
658 { 660 {
659 try 661 try
660 { 662 {