From 865b5bb3170ee993927df90c85dabd3085f23d4c Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Sat, 1 Nov 2008 17:05:28 +0000 Subject: Make the inventory transfer module replacable in config. --- .../Modules/Avatar/Inventory/Transfer/InventoryTransferModule.cs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'OpenSim/Region/Environment/Modules/Avatar/Inventory/Transfer') diff --git a/OpenSim/Region/Environment/Modules/Avatar/Inventory/Transfer/InventoryTransferModule.cs b/OpenSim/Region/Environment/Modules/Avatar/Inventory/Transfer/InventoryTransferModule.cs index b18fb5d..a07fc5f 100644 --- a/OpenSim/Region/Environment/Modules/Avatar/Inventory/Transfer/InventoryTransferModule.cs +++ b/OpenSim/Region/Environment/Modules/Avatar/Inventory/Transfer/InventoryTransferModule.cs @@ -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); -- cgit v1.1