mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 17:55:48 +08:00
Moved the property RegionLoginsEnabled from GridComms to the Scene -- not the scene itself but SceneCommunicationService, for now. Beginning to clear the code from using Region.Communications. grid stuff.
This commit is contained in:
@@ -557,7 +557,7 @@ namespace OpenSim
|
||||
/// <param name="cmd"></param>
|
||||
private void HandleLoginStatus(string module, string[] cmd)
|
||||
{
|
||||
if (m_commsManager.GridService.RegionLoginsEnabled == false)
|
||||
if (m_sceneManager.CurrentOrFirstScene.SceneGridService.RegionLoginsEnabled == false)
|
||||
|
||||
m_log.Info("[ Login ] Login are disabled ");
|
||||
else
|
||||
|
||||
@@ -209,9 +209,9 @@ namespace OpenSim
|
||||
}
|
||||
|
||||
// Only enable logins to the regions once we have completely finished starting up (apart from scripts)
|
||||
if ((m_commsManager != null) && (m_commsManager.GridService != null))
|
||||
if ((SceneManager.CurrentOrFirstScene != null) && (SceneManager.CurrentOrFirstScene.SceneGridService != null))
|
||||
{
|
||||
m_commsManager.GridService.RegionLoginsEnabled = true;
|
||||
SceneManager.CurrentOrFirstScene.SceneGridService.RegionLoginsEnabled = true;
|
||||
}
|
||||
|
||||
AddPluginCommands();
|
||||
@@ -299,12 +299,12 @@ namespace OpenSim
|
||||
if (LoginEnabled)
|
||||
{
|
||||
m_log.Info("[LOGIN]: Login is now enabled.");
|
||||
m_commsManager.GridService.RegionLoginsEnabled = true;
|
||||
SceneManager.CurrentOrFirstScene.SceneGridService.RegionLoginsEnabled = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
m_log.Info("[LOGIN]: Login is now disabled.");
|
||||
m_commsManager.GridService.RegionLoginsEnabled = false;
|
||||
SceneManager.CurrentOrFirstScene.SceneGridService.RegionLoginsEnabled = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user