Thank you very kindly, Melanie for:

The money module witll register (claim) an interface slot, 
even when disabled. This patch fixes it so that it will not
register to supply this interface unless it's activated.
0.6.0-stable
Charles Krinke 2008-05-17 22:06:11 +00:00
parent 4fde2e602c
commit 89056c492d
1 changed files with 3 additions and 2 deletions

View File

@ -133,13 +133,14 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Currency.SampleMoney
IConfig startupConfig = m_gConfig.Configs["Startup"]; IConfig startupConfig = m_gConfig.Configs["Startup"];
IConfig economyConfig = m_gConfig.Configs["Economy"]; IConfig economyConfig = m_gConfig.Configs["Economy"];
scene.RegisterModuleInterface<IMoneyModule>(this);
ReadConfigAndPopulate(scene, startupConfig, "Startup"); ReadConfigAndPopulate(scene, startupConfig, "Startup");
ReadConfigAndPopulate(scene, economyConfig, "Economy"); ReadConfigAndPopulate(scene, economyConfig, "Economy");
if (m_enabled) if (m_enabled)
{ {
scene.RegisterModuleInterface<IMoneyModule>(this);
lock (m_scenel) lock (m_scenel)
{ {
if (m_scenel.Count == 0) if (m_scenel.Count == 0)
@ -1538,4 +1539,4 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Currency.SampleMoney
Gift = 2, Gift = 2,
Purchase = 3 Purchase = 3
} }
} }