Add EventManager.OnRegionLoginsStatusChange fired whenever logins are enabled or disabled at any point, not just during initial startup.

This replaces EventManager.OnLoginsEnabled which only fired when logins were first enabled
and was affected by a bug where it would never fire if the region started with logins disabled.
This commit is contained in:
Justin Clark-Casey (justincc)
2012-07-19 00:09:22 +01:00
parent 64db0bcbd2
commit 6dda7c65ae
8 changed files with 47 additions and 25 deletions

View File

@@ -210,15 +210,13 @@ namespace OpenSim.Region.OptionalModules.Scripting.RegionReady
if (!m_scene.StartDisabled)
{
m_scene.LoginsDisabled = false;
m_scene.LoginsEnabled = true;
// m_log.InfoFormat("[RegionReady]: Logins enabled for {0}, Oar {1}",
// m_scene.RegionInfo.RegionName, m_oarFileLoading.ToString());
m_log.InfoFormat(
"[RegionReady]: INITIALIZATION COMPLETE FOR {0} - LOGINS ENABLED", m_scene.Name);
m_scene.EventManager.TriggerLoginsEnabled(m_scene);
}
m_scene.SceneGridService.InformNeighborsThatRegionisUp(