Commit 848ec9f8 authored by nanahira's avatar nanahira

Revert "no post to chall if disconnected by server"

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