Skip to content

Commit

Permalink
fix: death msgs not getting the user properly
Browse files Browse the repository at this point in the history
  • Loading branch information
vyneer committed Dec 28, 2023
1 parent 5f94fbc commit b072dc3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion assets/chat/js/chat.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b072dc3

Please sign in to comment.