diff --git a/client/client.js b/client/client.js index 1d72c9a..8a0d2e5 100644 --- a/client/client.js +++ b/client/client.js @@ -156,7 +156,12 @@ var COMMANDS = { function pushMessage(args) { // Message container var messageEl = document.createElement('div'); - messageEl.classList.add('message'); + + if (args.text.includes('@' + myNick.split('#')[0] + ' ')) { + messageEl.classList.add('refmessage'); + } else { + messageEl.classList.add('message'); + } if (verifyNickname(myNick) && args.nick == myNick) { messageEl.classList.add('me'); diff --git a/client/index.html b/client/index.html index 9abdebc..98b9428 100644 --- a/client/index.html +++ b/client/index.html @@ -20,7 +20,7 @@