diff options
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/OptionalModules/World/AutoBackup/AutoBackupModule.cs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/OpenSim/Region/OptionalModules/World/AutoBackup/AutoBackupModule.cs b/OpenSim/Region/OptionalModules/World/AutoBackup/AutoBackupModule.cs index 68cf219..ebad12f 100644 --- a/OpenSim/Region/OptionalModules/World/AutoBackup/AutoBackupModule.cs +++ b/OpenSim/Region/OptionalModules/World/AutoBackup/AutoBackupModule.cs | |||
@@ -234,11 +234,22 @@ namespace OpenSim.Region.OptionalModules.World.AutoBackup | |||
234 | if(scene == null) | 234 | if(scene == null) |
235 | return; | 235 | return; |
236 | 236 | ||
237 | m_log.Info("[AUTO BACKUP MODULE]: RegionLoaded for region: " + scene.RegionInfo.RegionName); | ||
238 | |||
237 | AutoBackupModuleState st = new AutoBackupModuleState(scene); | 239 | AutoBackupModuleState st = new AutoBackupModuleState(scene); |
238 | states.Add(scene, st); | 240 | states.Add(scene, st); |
239 | 241 | ||
240 | //Read the config settings and set variables. | 242 | //Read the config settings and set variables. |
241 | IConfig config = m_configSource.Configs[scene.RegionInfo.RegionName]; | 243 | IConfig config = m_configSource.Configs[scene.RegionInfo.RegionName]; |
244 | if(config == null) | ||
245 | { | ||
246 | m_log.Warn("[AUTO BACKUP MODULE]: Can't get config settings! Here are the IConfigs available:"); | ||
247 | foreach(IConfig c in m_configSource.Configs) | ||
248 | { | ||
249 | m_log.Warn("[AUTO BACKUP MODULE]: " + c.Name); | ||
250 | } | ||
251 | throw new NullReferenceException("This is debug code"); | ||
252 | } | ||
242 | st.SetEnabled(config.GetBoolean("AutoBackup", false)); | 253 | st.SetEnabled(config.GetBoolean("AutoBackup", false)); |
243 | if(!st.GetEnabled()) //If you don't want AutoBackup, we stop. | 254 | if(!st.GetEnabled()) //If you don't want AutoBackup, we stop. |
244 | return; | 255 | return; |