From 3ecc90cd2e222ee9f97d1f0e31fe357fa3116e8d Mon Sep 17 00:00:00 2001 From: elexis Date: Thu, 6 Jul 2017 01:05:03 +0000 Subject: [PATCH] Fix a reference error in 6141c5c4fa / D514 reported by causative. This was SVN commit r19873. --- binaries/data/mods/public/gui/lobby/lobby.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/binaries/data/mods/public/gui/lobby/lobby.js b/binaries/data/mods/public/gui/lobby/lobby.js index 0ca0769a23..159e538a00 100644 --- a/binaries/data/mods/public/gui/lobby/lobby.js +++ b/binaries/data/mods/public/gui/lobby/lobby.js @@ -216,10 +216,10 @@ var g_NetMessageTypes = { }); }, "kicked": msg => { - handleKick(false, msg.text, msg.data || ""); + handleKick(false, msg.text, msg.data || "", msg.time); }, "banned": msg => { - handleKick(true, msg.text, msg.data || ""); + handleKick(true, msg.text, msg.data || "", msg.time); }, "room-message": msg => { addChatMessage({ @@ -475,7 +475,7 @@ function filterGame(game) return false; } -function handleKick(banned, nick, reason) +function handleKick(banned, nick, reason, time) { let kickString = nick == g_Username ? banned ? @@ -494,7 +494,7 @@ function handleKick(banned, nick, reason) { addChatMessage({ "text": "/special " + sprintf(kickString, { "nick": nick }) + " " + reason, - "time": msg.time, + "time": time, "isSpecial": true }); return; @@ -502,7 +502,7 @@ function handleKick(banned, nick, reason) addChatMessage({ "from": "system", - "time": msg.time, + "time": time, "text": kickString + " " + reason, });