From 4c4e7aad7de1b4075be26077ded4eadd3d130d25 Mon Sep 17 00:00:00 2001 From: whales Date: Fri, 12 Jul 2019 07:45:13 +0000 Subject: [PATCH] Tournaments: Support replace message (#1321) --- js/client-chat-tournament.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/client-chat-tournament.js b/js/client-chat-tournament.js index b3b17e60b..1f4194ce4 100644 --- a/js/client-chat-tournament.js +++ b/js/client-chat-tournament.js @@ -308,6 +308,10 @@ this.$lastJoinLeaveMessage.text(message.join("; ") + "."); break; + case 'replace': + this.room.$chat.append("
" + BattleLog.escapeHTML(data[1]) + " has joined the tournament, replacing " + BattleLog.escapeHTML(data[0]) + ".
"); + break; + case 'start': this.room.closeNotification('tournament-create'); if (!this.info.isJoined) {