Fix the XmlRpcRouterModule so it reads from the correct config section ([XMLRPC] not [Startup]) and disable by default (since it's disabled in the ini by default)
parent
763dc8bb76
commit
d2d56494b2
|
@ -45,12 +45,12 @@ namespace OpenSim.Region.OptionalModules.Scripting.XmlRpcRouterModule
|
||||||
private bool m_enabled = false;
|
private bool m_enabled = false;
|
||||||
public void Initialise(Scene scene, IConfigSource config)
|
public void Initialise(Scene scene, IConfigSource config)
|
||||||
{
|
{
|
||||||
IConfig startupConfig = config.Configs["Startup"];
|
IConfig startupConfig = config.Configs["XMLRPC"];
|
||||||
if (startupConfig == null)
|
if (startupConfig == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (startupConfig.GetString("XmlRpcRouterModule",
|
if (startupConfig.GetString("XmlRpcRouterModule",
|
||||||
"XmlRpcRouterModule") == "XmlRpcRouterModule")
|
"") == "XmlRpcRouterModule")
|
||||||
{
|
{
|
||||||
scene.RegisterModuleInterface<IXmlRpcRouter>(this);
|
scene.RegisterModuleInterface<IXmlRpcRouter>(this);
|
||||||
m_enabled = true;
|
m_enabled = true;
|
||||||
|
|
Loading…
Reference in New Issue