mirror of
https://github.com/hack-chat/main.git
synced 2024-03-22 13:20:33 +08:00
Merge pull request #185 from xjzh123/master
fix my-message css for users with tripcodes
This commit is contained in:
commit
8b8a325a5d
|
@ -431,7 +431,7 @@ function pushMessage(args) {
|
||||||
|
|
||||||
messageEl.classList.add('message');
|
messageEl.classList.add('message');
|
||||||
|
|
||||||
if (verifyNickname(myNick) && args.nick == myNick) {
|
if (verifyNickname(myNick.split('#')[0]) && args.nick == myNick.split('#')[0]) {
|
||||||
messageEl.classList.add('me');
|
messageEl.classList.add('me');
|
||||||
} else if (args.nick == '!') {
|
} else if (args.nick == '!') {
|
||||||
messageEl.classList.add('warn');
|
messageEl.classList.add('warn');
|
||||||
|
|
Loading…
Reference in New Issue
Block a user