Skip to content

Commit

Permalink
Updated muted chats to check for username case sensitivity (#716)
Browse files Browse the repository at this point in the history
  • Loading branch information
kev306 authored Nov 14, 2024
1 parent 296552b commit b3a9f13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/scripts/lobby/chat.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ function addToAllChat(data) {
}

// if they've muted this player, then just dont show anything. reset str to nothing.
if (isPlayerMuted(data[i].username) === true) {
if (data[i].username && isPlayerMuted(data[i].username.toLowerCase()) === true) {
str = '';
}

Expand Down

0 comments on commit b3a9f13

Please sign in to comment.