From b072dc30e96d5d99aef0ecf8839a83e1c56cc84e Mon Sep 17 00:00:00 2001 From: vyneer Date: Thu, 28 Dec 2023 12:19:37 +0300 Subject: [PATCH] fix: death msgs not getting the user properly --- assets/chat/js/chat.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/assets/chat/js/chat.js b/assets/chat/js/chat.js index a874bb8d..dc855cdd 100644 --- a/assets/chat/js/chat.js +++ b/assets/chat/js/chat.js @@ -1442,7 +1442,8 @@ class Chat { } onDEATH(data) { - const user = this.users.get(data.nick) ?? new ChatUser(data.nick); + const user = + this.users.get(data.nick.toLowerCase()) ?? new ChatUser(data.nick); if (this.user.username === data.nick.toLowerCase()) { if (isMuteActive(data)) { this.mutedtimer.setTimer(data.duration);