mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 08:55:56 +08:00
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.
This commit is contained in:
@@ -133,13 +133,14 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Currency.SampleMoney
|
||||
IConfig startupConfig = m_gConfig.Configs["Startup"];
|
||||
IConfig economyConfig = m_gConfig.Configs["Economy"];
|
||||
|
||||
scene.RegisterModuleInterface<IMoneyModule>(this);
|
||||
|
||||
ReadConfigAndPopulate(scene, startupConfig, "Startup");
|
||||
ReadConfigAndPopulate(scene, economyConfig, "Economy");
|
||||
|
||||
if (m_enabled)
|
||||
{
|
||||
scene.RegisterModuleInterface<IMoneyModule>(this);
|
||||
|
||||
lock (m_scenel)
|
||||
{
|
||||
if (m_scenel.Count == 0)
|
||||
@@ -1538,4 +1539,4 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Currency.SampleMoney
|
||||
Gift = 2,
|
||||
Purchase = 3
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user