Commit 9e5db7f1 authored by nanahira's avatar nanahira

no post to chall if disconnected by server

parent a8163b5c
......@@ -825,7 +825,7 @@ class Room
#else
# log.info 'SCORE POST OK', response.statusCode, response.statusMessage, @name, body
return
if settings.modules.challonge.enabled and @started and !@kicked
if settings.modules.challonge.enabled and @started and !@kicked and @disconnector != 'server'
challonge.matches.update({
id: settings.modules.challonge.tournament_id,
matchId: @challonge_info.id,
......
......@@ -1066,7 +1066,7 @@
})(this));
}
}
if (settings.modules.challonge.enabled && this.started && !this.kicked) {
if (settings.modules.challonge.enabled && this.started && !this.kicked && this.disconnector !== 'server') {
challonge.matches.update({
id: settings.modules.challonge.tournament_id,
matchId: this.challonge_info.id,
......
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