mirror of
https://github.com/opensim/opensim.git
synced 2026-07-13 19:14:51 +08:00
simple money module: do not override economy setting if defined
This commit is contained in:
@@ -182,7 +182,8 @@ namespace OpenSim.Region.OptionalModules.World.MoneyModule
|
||||
{
|
||||
if (!m_enabled)
|
||||
return;
|
||||
|
||||
if(scene.SceneGridInfo!= null && !string.IsNullOrEmpty(scene.SceneGridInfo.EconomyURL))
|
||||
return;
|
||||
ISimulatorFeaturesModule fm = scene.RequestModuleInterface<ISimulatorFeaturesModule>();
|
||||
if (fm != null && !string.IsNullOrWhiteSpace(m_localEconomyURL))
|
||||
{
|
||||
@@ -261,7 +262,7 @@ namespace OpenSim.Region.OptionalModules.World.MoneyModule
|
||||
|
||||
// economymodule may be at startup or Economy (legacy)
|
||||
string mmodule = startupConfig.GetString("economymodule","");
|
||||
if(String.IsNullOrEmpty(mmodule))
|
||||
if(string.IsNullOrEmpty(mmodule))
|
||||
{
|
||||
if(economyConfig != null)
|
||||
{
|
||||
@@ -271,7 +272,7 @@ namespace OpenSim.Region.OptionalModules.World.MoneyModule
|
||||
}
|
||||
}
|
||||
|
||||
if (!String.IsNullOrEmpty(mmodule) && mmodule != Name)
|
||||
if (!string.IsNullOrEmpty(mmodule) && mmodule != Name)
|
||||
{
|
||||
// some other money module selected
|
||||
m_enabled = false;
|
||||
|
||||
Reference in New Issue
Block a user