Thanks SachaMagne for a patch which adds the following console commands:
login-enable : Allow login at sim level (opensim.exe) login-disable: Stop any login BUT keep the logged avt login-status : Return the actual status0.6.1-post-fixes
parent
95fec14201
commit
d8bb20fc1c
|
@ -310,6 +310,19 @@ namespace OpenSim
|
|||
Create(cmdparams);
|
||||
break;
|
||||
|
||||
case "login-enable":
|
||||
ProcessLogin(true);
|
||||
break;
|
||||
case "login-disable":
|
||||
ProcessLogin(false);
|
||||
break;
|
||||
case "login-status":
|
||||
if (m_commsManager.GridService.RegionLoginsEnabled == false)
|
||||
|
||||
m_log.Info("[ Login ] Login are disabled ");
|
||||
else
|
||||
m_log.Info("[ Login ] Login are enabled");
|
||||
break;
|
||||
case "create-region":
|
||||
string regionsDir = ConfigSource.Source.Configs["Startup"].GetString("regionload_regionsdir", "Regions").Trim();
|
||||
string regionFile = String.Format("{0}/{1}", regionsDir, cmdparams[1]);
|
||||
|
@ -659,6 +672,9 @@ namespace OpenSim
|
|||
m_console.Notice("config get section field - get a config value");
|
||||
m_console.Notice("config save - save OpenSim.ini");
|
||||
m_console.Notice("terrain help - show help for terrain commands.");
|
||||
m_console.Notice("login-enable - Allows login at sim level");
|
||||
m_console.Notice("login-disable - Disable login at sim level");
|
||||
m_console.Notice("login-status - Show the actual login status");
|
||||
|
||||
ShowPluginCommandsHelp(CombineParams(helpArgs, 0), m_console);
|
||||
|
||||
|
@ -680,7 +696,7 @@ namespace OpenSim
|
|||
case "assets":
|
||||
m_assetCache.ShowState();
|
||||
break;
|
||||
|
||||
|
||||
case "users":
|
||||
IList agents;
|
||||
if (showParams.Length > 1 && showParams[1] == "full")
|
||||
|
|
|
@ -303,6 +303,21 @@ namespace OpenSim
|
|||
return m_commsManager.AddUser(tempfirstname, templastname, tempPasswd, email, regX, regY);
|
||||
}
|
||||
|
||||
public void ProcessLogin(bool LoginEnabled)
|
||||
{
|
||||
if (LoginEnabled)
|
||||
{
|
||||
m_log.Info("[Login] Login are now enabled ");
|
||||
m_commsManager.GridService.RegionLoginsEnabled = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
m_log.Info("[Login] Login are now disabled ");
|
||||
m_commsManager.GridService.RegionLoginsEnabled = false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Execute the region creation process. This includes setting up scene infrastructure.
|
||||
/// </summary>
|
||||
|
|
Loading…
Reference in New Issue