diff options
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/EventManager.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/EventManager.cs | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/EventManager.cs b/OpenSim/Region/Framework/Scenes/EventManager.cs index e04317b..b43d5f0 100644 --- a/OpenSim/Region/Framework/Scenes/EventManager.cs +++ b/OpenSim/Region/Framework/Scenes/EventManager.cs | |||
@@ -389,6 +389,9 @@ namespace OpenSim.Region.Framework.Scenes | |||
389 | public delegate void RegionUp(GridRegion region); | 389 | public delegate void RegionUp(GridRegion region); |
390 | public event RegionUp OnRegionUp; | 390 | public event RegionUp OnRegionUp; |
391 | 391 | ||
392 | public delegate void LoginsEnabled(string regionName); | ||
393 | public event LoginsEnabled OnLoginsEnabled; | ||
394 | |||
392 | public class MoneyTransferArgs : EventArgs | 395 | public class MoneyTransferArgs : EventArgs |
393 | { | 396 | { |
394 | public UUID sender; | 397 | public UUID sender; |
@@ -2218,5 +2221,26 @@ namespace OpenSim.Region.Framework.Scenes | |||
2218 | } | 2221 | } |
2219 | } | 2222 | } |
2220 | } | 2223 | } |
2224 | |||
2225 | public void TriggerLoginsEnabled (string regionName) | ||
2226 | { | ||
2227 | LoginsEnabled handler = OnLoginsEnabled; | ||
2228 | |||
2229 | if ( handler != null) | ||
2230 | { | ||
2231 | foreach (LoginsEnabled d in handler.GetInvocationList()) | ||
2232 | { | ||
2233 | try | ||
2234 | { | ||
2235 | d(regionName); | ||
2236 | } | ||
2237 | catch (Exception e) | ||
2238 | { | ||
2239 | m_log.ErrorFormat("[EVENT MANAGER]: Delegate for LoginsEnabled failed - continuing {0} - {1}", | ||
2240 | e.Message, e.StackTrace); | ||
2241 | } | ||
2242 | } | ||
2243 | } | ||
2244 | } | ||
2221 | } | 2245 | } |
2222 | } | 2246 | } |