aboutsummaryrefslogtreecommitdiffstats
path: root/client/client.js
diff options
context:
space:
mode:
Diffstat (limited to 'client/client.js')
-rw-r--r--client/client.js7
1 files changed, 6 insertions, 1 deletions
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');