diff options
Diffstat (limited to 'OpenSim/Region/Application/OpenSim.cs')
-rw-r--r-- | OpenSim/Region/Application/OpenSim.cs | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/OpenSim/Region/Application/OpenSim.cs b/OpenSim/Region/Application/OpenSim.cs index 765c471..d44eedf 100644 --- a/OpenSim/Region/Application/OpenSim.cs +++ b/OpenSim/Region/Application/OpenSim.cs | |||
@@ -310,6 +310,19 @@ namespace OpenSim | |||
310 | Create(cmdparams); | 310 | Create(cmdparams); |
311 | break; | 311 | break; |
312 | 312 | ||
313 | case "login-enable": | ||
314 | ProcessLogin(true); | ||
315 | break; | ||
316 | case "login-disable": | ||
317 | ProcessLogin(false); | ||
318 | break; | ||
319 | case "login-status": | ||
320 | if (m_commsManager.GridService.RegionLoginsEnabled == false) | ||
321 | |||
322 | m_log.Info("[ Login ] Login are disabled "); | ||
323 | else | ||
324 | m_log.Info("[ Login ] Login are enabled"); | ||
325 | break; | ||
313 | case "create-region": | 326 | case "create-region": |
314 | string regionsDir = ConfigSource.Source.Configs["Startup"].GetString("regionload_regionsdir", "Regions").Trim(); | 327 | string regionsDir = ConfigSource.Source.Configs["Startup"].GetString("regionload_regionsdir", "Regions").Trim(); |
315 | string regionFile = String.Format("{0}/{1}", regionsDir, cmdparams[1]); | 328 | string regionFile = String.Format("{0}/{1}", regionsDir, cmdparams[1]); |
@@ -659,6 +672,9 @@ namespace OpenSim | |||
659 | m_console.Notice("config get section field - get a config value"); | 672 | m_console.Notice("config get section field - get a config value"); |
660 | m_console.Notice("config save - save OpenSim.ini"); | 673 | m_console.Notice("config save - save OpenSim.ini"); |
661 | m_console.Notice("terrain help - show help for terrain commands."); | 674 | m_console.Notice("terrain help - show help for terrain commands."); |
675 | m_console.Notice("login-enable - Allows login at sim level"); | ||
676 | m_console.Notice("login-disable - Disable login at sim level"); | ||
677 | m_console.Notice("login-status - Show the actual login status"); | ||
662 | 678 | ||
663 | ShowPluginCommandsHelp(CombineParams(helpArgs, 0), m_console); | 679 | ShowPluginCommandsHelp(CombineParams(helpArgs, 0), m_console); |
664 | 680 | ||
@@ -680,7 +696,7 @@ namespace OpenSim | |||
680 | case "assets": | 696 | case "assets": |
681 | m_assetCache.ShowState(); | 697 | m_assetCache.ShowState(); |
682 | break; | 698 | break; |
683 | 699 | ||
684 | case "users": | 700 | case "users": |
685 | IList agents; | 701 | IList agents; |
686 | if (showParams.Length > 1 && showParams[1] == "full") | 702 | if (showParams.Length > 1 && showParams[1] == "full") |