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)

avinationmerge
Tom 2010-08-01 10:24:43 -07:00
parent 763dc8bb76
commit d2d56494b2
1 changed files with 2 additions and 2 deletions

View File

@ -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;