From b54adf4610ee18d1c9b03471b61fd1f5019bb9ce Mon Sep 17 00:00:00 2001 From: xjzh123 <37945610+xjzh123@users.noreply.github.com> Date: Sat, 5 Nov 2022 22:09:51 +0800 Subject: [PATCH] fix my-message css for users with tripcodes --- client/client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/client.js b/client/client.js index 39c03d2..f493cb7 100644 --- a/client/client.js +++ b/client/client.js @@ -431,7 +431,7 @@ function pushMessage(args) { messageEl.classList.add('message'); - if (verifyNickname(myNick) && args.nick == myNick) { + if (verifyNickname(myNick.split('#')[0]) && args.nick == myNick.split('#')[0]) { messageEl.classList.add('me'); } else if (args.nick == '!') { messageEl.classList.add('warn');