Commit 9aff2746 authored by nanahira's avatar nanahira

Merge branch 'mc'

parents 8785a2ea 47e43a7a
...@@ -481,7 +481,10 @@ if settings.modules.challonge.enabled ...@@ -481,7 +481,10 @@ if settings.modules.challonge.enabled
challonge_module_name = settings.modules.challonge.use_custom_module challonge_module_name = settings.modules.challonge.use_custom_module
challonge = global.challonge = require(challonge_module_name).createClient(settings.modules.challonge.options) challonge = global.challonge = require(challonge_module_name).createClient(settings.modules.challonge.options)
if settings.modules.challonge.cache_ttl if settings.modules.challonge.cache_ttl
challonge_cache = [] challonge_cache = {
participants: null
matches: null
}
challonge_queue_callbacks = { challonge_queue_callbacks = {
participants: [] participants: []
matches: [] matches: []
......
...@@ -641,7 +641,10 @@ ...@@ -641,7 +641,10 @@
} }
challonge = global.challonge = require(challonge_module_name).createClient(settings.modules.challonge.options); challonge = global.challonge = require(challonge_module_name).createClient(settings.modules.challonge.options);
if (settings.modules.challonge.cache_ttl) { if (settings.modules.challonge.cache_ttl) {
challonge_cache = []; challonge_cache = {
participants: null,
matches: null
};
} }
challonge_queue_callbacks = { challonge_queue_callbacks = {
participants: [], participants: [],
......
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