Commit 0bd010e2 authored by nanahira's avatar nanahira

Merge branch 'mc'

parents 49eb1a13 c103c288
......@@ -412,20 +412,20 @@ if settings.modules.challonge.enabled
refresh_challonge_cache = () ->
challonge_cache[0] = null
challonge_cache[1] = null
challonge.participants._index({
id: settings.modules.challonge.tournament_id,
callback: (() ->
challonge.matches._index({
id: settings.modules.challonge.tournament_id,
callback: (() ->
return
)
})
return
)
})
return
refresh_challonge_cache()
challonge.participants._index({
id: settings.modules.challonge.tournament_id,
callback: (() ->
challonge.matches._index({
id: settings.modules.challonge.tournament_id,
callback: (() ->
return
)
})
return
)
})
setInterval(refresh_challonge_cache, 30000)
if settings.modules.vip.enabled
......
......@@ -508,17 +508,17 @@
refresh_challonge_cache = function() {
challonge_cache[0] = null;
challonge_cache[1] = null;
challonge.participants._index({
id: settings.modules.challonge.tournament_id,
callback: (function() {
challonge.matches._index({
id: settings.modules.challonge.tournament_id,
callback: (function() {})
});
})
});
};
refresh_challonge_cache();
challonge.participants._index({
id: settings.modules.challonge.tournament_id,
callback: (function() {
challonge.matches._index({
id: settings.modules.challonge.tournament_id,
callback: (function() {})
});
})
});
setInterval(refresh_challonge_cache, 30000);
}
......
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