Skip to content

Commit

Permalink
Add periods to tournament messages
Browse files Browse the repository at this point in the history
  • Loading branch information
TheImmortal committed Mar 17, 2015
1 parent 619c60f commit a96d231
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions js/client-chat-tournament.js
Original file line number Diff line number Diff line change
Expand Up @@ -280,17 +280,17 @@
break;

case 'disqualify':
this.room.$chat.append("<div class=\"notice tournament-message-disqualify\">" + Tools.escapeHTML(data[0]) + " has been disqualified from the tournament</div>");
this.room.$chat.append("<div class=\"notice tournament-message-disqualify\">" + Tools.escapeHTML(data[0]) + " has been disqualified from the tournament.</div>");
break;

case 'autodq':
if (data[0] === 'off') {
this.room.$chat.append("<div class=\"notice tournament-message-autodq-off\">The tournament's automatic disqualify timeout has been turned off</div>");
this.room.$chat.append("<div class=\"notice tournament-message-autodq-off\">The tournament's automatic disqualify timeout has been turned off.</div>");
} else if (data[0] === 'on') {
this.room.$chat.append("<div class=\"notice tournament-message-autodq-off\">The tournament's automatic disqualify timeout has been set to " + (data[1] / 1000 / 60) + " minutes</div>");
this.room.$chat.append("<div class=\"notice tournament-message-autodq-off\">The tournament's automatic disqualify timeout has been set to " + (data[1] / 1000 / 60) + " minutes.</div>");
} else {
var seconds = Math.floor(data[1] / 1000);
app.addPopupMessage("Please respond to the tournament within " + seconds + " seconds or you may be automatically disqualified");
app.addPopupMessage("Please respond to the tournament within " + seconds + " seconds or you may be automatically disqualified.");
this.room.notifyOnce("Tournament Automatic Disqualification Warning", "Room: " + this.room.title + "\nSeconds: " + seconds, 'tournament-autodq-warning');
}
break;
Expand Down

0 comments on commit a96d231

Please sign in to comment.