aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--client/client.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/client.js b/client/client.js
index 230b211..2e9a255 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');