From b0cbcc73fb9cb7da87020d4a1f9b471042061ab8 Mon Sep 17 00:00:00 2001 From: MinusGix Date: Thu, 25 Apr 2019 16:54:43 -0500 Subject: [PATCH] Update client.js --- client/client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/client.js b/client/client.js index ab766b0..ec87e6b 100644 --- a/client/client.js +++ b/client/client.js @@ -177,7 +177,7 @@ function pushMessage(args) { // Message container var messageEl = document.createElement('div'); - if (args.text.includes('@' + myNick.split('#')[0] + ' ')) { + if (typeof(myNick) === 'string' && args.text.includes('@' + myNick.split('#')[0] + ' ')) { messageEl.classList.add('refmessage'); } else { messageEl.classList.add('message');