Make Setup_XXX=disabled not even load the module at all, rather than
loading and not using it0.8.2-post-fixes
parent
c83da03183
commit
ce2aeb8424
|
@ -131,6 +131,9 @@ namespace OpenSim.ApplicationPlugins.RegionModulesController
|
||||||
// Read the config again
|
// Read the config again
|
||||||
string moduleString =
|
string moduleString =
|
||||||
modulesConfig.GetString("Setup_" + node.Id, String.Empty);
|
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
|
// Get the port number, if there is one
|
||||||
if (moduleString != String.Empty)
|
if (moduleString != String.Empty)
|
||||||
|
@ -365,6 +368,10 @@ namespace OpenSim.ApplicationPlugins.RegionModulesController
|
||||||
string moduleString =
|
string moduleString =
|
||||||
modulesConfig.GetString("Setup_" + node.Id, String.Empty);
|
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
|
// Get the port number, if there is one
|
||||||
if (moduleString != String.Empty)
|
if (moduleString != String.Empty)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue