aboutsummaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorMinusGix <MinusGix@gmail.com>2019-04-25 23:54:43 +0200
committerGitHub <noreply@github.com>2019-04-25 23:54:43 +0200
commitb0cbcc73fb9cb7da87020d4a1f9b471042061ab8 (patch)
treeca12596ed0eeaab32546d711eab9ac2b9b532fc3 /client
parentMerge pull request #59 from MinusGix/patch-4 (diff)
downloadhackchat-b0cbcc73fb9cb7da87020d4a1f9b471042061ab8.tar.gz
hackchat-b0cbcc73fb9cb7da87020d4a1f9b471042061ab8.zip
Update client.js
Diffstat (limited to 'client')
-rw-r--r--client/client.js2
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');