Make the inventory transfer module replacable in config.

0.6.0-stable
Melanie Thielker 2008-11-01 17:05:28 +00:00
parent 0bff4215fe
commit 865b5bb317
1 changed files with 9 additions and 0 deletions

View File

@ -55,6 +55,15 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Inventory.Transfer
public void Initialise(Scene scene, IConfigSource config)
{
if (config.Configs["Messaging"] != null)
{
// Allow disabling this module in config
//
if (config.Configs["Messaging"].GetString(
"InventoryTransferModule", "InventoryTransferModule") !=
"InventoryTransferModule")
return;
}
if (!m_Scenelist.Contains(scene))
{
m_Scenelist.Add(scene);