mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 17:55:48 +08:00
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:
@@ -106,6 +106,24 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
|
||||
protected readonly ClientManager m_clientManager = new ClientManager();
|
||||
|
||||
public bool LoginsEnabled
|
||||
{
|
||||
get
|
||||
{
|
||||
return m_loginsEnabled;
|
||||
}
|
||||
|
||||
set
|
||||
{
|
||||
if (m_loginsEnabled != value)
|
||||
{
|
||||
m_loginsEnabled = value;
|
||||
EventManager.TriggerRegionLoginsStatusChange(this);
|
||||
}
|
||||
}
|
||||
}
|
||||
private bool m_loginsEnabled;
|
||||
|
||||
public float TimeDilation
|
||||
{
|
||||
get { return 1.0f; }
|
||||
|
||||
Reference in New Issue
Block a user