From 4b7b9e81f7b33c86f691e2bca756a3639fe9ee04 Mon Sep 17 00:00:00 2001 From: Melanie Date: Wed, 12 Oct 2011 15:41:59 +0100 Subject: Make it possible to disable the HG linker. On non-HG systems it spits yellow spam, so it should not load unless HG is desired. --- OpenSim/Services/GridService/HypergridLinker.cs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'OpenSim') diff --git a/OpenSim/Services/GridService/HypergridLinker.cs b/OpenSim/Services/GridService/HypergridLinker.cs index 83ec122..90c022f 100644 --- a/OpenSim/Services/GridService/HypergridLinker.cs +++ b/OpenSim/Services/GridService/HypergridLinker.cs @@ -102,6 +102,13 @@ namespace OpenSim.Services.GridService public HypergridLinker(IConfigSource config, GridService gridService, IRegionData db) { + IConfig modulesConfig = config.Configs["Modules"]; + if (modulesConfig == null) + return; + + if (modulesConfig.GetString("HypergridLinker", "") != "HypergridLinker") + return; + m_log.DebugFormat("[HYPERGRID LINKER]: Starting with db {0}", db.GetType()); m_Database = db; -- cgit v1.1