mirror of
https://github.com/opensim/opensim.git
synced 2026-05-14 18:55:39 +08:00
Make Setup_XXX=disabled not even load the module at all, rather than
loading and not using it
This commit is contained in:
@@ -131,6 +131,9 @@ namespace OpenSim.ApplicationPlugins.RegionModulesController
|
||||
// Read the config again
|
||||
string moduleString =
|
||||
modulesConfig.GetString("Setup_" + node.Id, String.Empty);
|
||||
// Test to see if we want this module
|
||||
if (moduleString == "disabled")
|
||||
continue;
|
||||
|
||||
// Get the port number, if there is one
|
||||
if (moduleString != String.Empty)
|
||||
@@ -365,6 +368,10 @@ namespace OpenSim.ApplicationPlugins.RegionModulesController
|
||||
string moduleString =
|
||||
modulesConfig.GetString("Setup_" + node.Id, String.Empty);
|
||||
|
||||
// We may not want to load this at all
|
||||
if (moduleString == "disabled")
|
||||
continue;
|
||||
|
||||
// Get the port number, if there is one
|
||||
if (moduleString != String.Empty)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user