From 2db5de3e7217ca4bd9fcaf5345ea5672b5d6663f Mon Sep 17 00:00:00 2001 From: Tedd Hansen Date: Sat, 2 Feb 2008 07:35:51 +0000 Subject: Added commands to change config file from console: CONFIG SET section key value value value CONFIG GET section key CONFIG SAVE (it saves, but does it save correctly?:) ScriptEngine will react correctly to any config change made while it is running. --- .../ScriptEngine/Common/ScriptEngineBase/ScriptEngine.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'OpenSim/Region/ScriptEngine') diff --git a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/ScriptEngine.cs b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/ScriptEngine.cs index 0b58da0..4cf39b4 100644 --- a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/ScriptEngine.cs +++ b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/ScriptEngine.cs @@ -134,14 +134,14 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase #if DEBUG Log.Debug(ScriptEngineName, "Refreshing configuration for all modules"); #endif - RefreshConfigFileSeconds = ScriptConfigSource.GetInt("RefreshConfig", 0); + RefreshConfigFileSeconds = ScriptConfigSource.GetInt("RefreshConfig", 30); - // Reload from disk + // Reload from disk? No! //ConfigSource.Reload(); - if (File.Exists(OpenSim.Application.iniFilePath)) - { - //ConfigSource.Merge(new IniConfigSource(OpenSim.Application.iniFilePath)); - } + //if (File.Exists(OpenSim.Application.iniFilePath)) + //{ + // //ConfigSource.Merge(new IniConfigSource(OpenSim.Application.iniFilePath)); + //} // Create a new object (probably not necessary?) -- cgit v1.1