Skip to content

Commit

Permalink
fix: some users not being censored on ban/mute
Browse files Browse the repository at this point in the history
  • Loading branch information
vyneer committed Sep 20, 2023
1 parent 71f205d commit 8158412
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/chat/js/chat.js
Original file line number Diff line number Diff line change
Expand Up @@ -871,7 +871,7 @@ class Chat {

censor(nick) {
for (const message of this.mainwindow.messages) {
if (message.user?.username === nick) {
if (message.user?.username === nick.toLowerCase()) {
message.censor(parseInt(this.settings.get('showremoved') || '1', 10));
}
}
Expand Down

0 comments on commit 8158412

Please sign in to comment.