diff options
Diffstat (limited to '')
-rw-r--r-- | client/client.js | 2 |
1 files changed, 1 insertions, 1 deletions
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'); |