Commit 8cdf8b7e authored by nanahira's avatar nanahira

small fixes

parent 7fde6a42
......@@ -315,8 +315,8 @@ init = () ->
settings.modules.cloud_replay.enabled = false
await setting_save(settings)
log.warn("Cloud replay cannot be enabled because no MySQL.")
if settings.modules.enable_recover.enabled
settings.modules.enable_recover.enabled = false
if settings.modules.tournament_mode.enable_recover.enabled
settings.modules.tournament_mode.enable_recover.enabled = false
await setting_save(settings)
log.warn("Recover mode cannot be enabled because no MySQL.")
if settings.modules.chat_color.enabled
......
......@@ -413,8 +413,8 @@
await setting_save(settings);
log.warn("Cloud replay cannot be enabled because no MySQL.");
}
if (settings.modules.enable_recover.enabled) {
settings.modules.enable_recover.enabled = false;
if (settings.modules.tournament_mode.enable_recover.enabled) {
settings.modules.tournament_mode.enable_recover.enabled = false;
await setting_save(settings);
log.warn("Recover mode cannot be enabled because no MySQL.");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment