Commit 43fb0c25 authored by nanahira's avatar nanahira

js

parent 64bef582
...@@ -1263,7 +1263,7 @@ ...@@ -1263,7 +1263,7 @@
}; };
})(this)); })(this));
} }
if (settings.modules.challonge.enabled && this.started && !this.kicked) { if (settings.modules.challonge.enabled && this.started && this.hostinfo.mode !== 2 && !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,
...@@ -1371,7 +1371,7 @@ ...@@ -1371,7 +1371,7 @@
Room.prototype.get_challonge_score = function() { Room.prototype.get_challonge_score = function() {
var challonge_duel_log; var challonge_duel_log;
if (!settings.modules.challonge.enabled || this.hostinfo.mode === 2) { if (!settings.modules.challonge.enabled || !this.started || this.hostinfo.mode === 2) {
return null; return null;
} }
challonge_duel_log = {}; challonge_duel_log = {};
...@@ -3600,7 +3600,7 @@ ...@@ -3600,7 +3600,7 @@
}, 60000); }, 60000);
client.side_interval = sinterval; client.side_interval = sinterval;
} }
if (settings.modules.challonge.enabled && settings.modules.challonge.post_score_midduel && client.pos === 0) { if (settings.modules.challonge.enabled && settings.modules.challonge.post_score_midduel && room.hostinfo.mode !== 2 && client.pos === 0) {
temp_log = JSON.parse(JSON.stringify(room.get_challonge_score())); temp_log = JSON.parse(JSON.stringify(room.get_challonge_score()));
delete temp_log.winnerId; delete temp_log.winnerId;
challonge.matches.update({ challonge.matches.update({
......
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