1
0
mirror of https://github.com/hack-chat/main.git synced 2024-03-22 13:20:33 +08:00

fix my-message css for users with tripcodes

This commit is contained in:
xjzh123 2022-11-05 22:09:51 +08:00
parent 2fac02d430
commit b54adf4610

View File

@ -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');