aboutsummaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authormarzavec <admin@marzavec.com>2018-11-03 15:51:05 +0100
committermarzavec <admin@marzavec.com>2018-11-03 15:51:05 +0100
commitc23aa0657e93727384a488e78834faff8b0cb8c1 (patch)
tree5e98d0045ffd25753bbadb2fc87a4c8e5b77de16 /client
parentadded auto reply to whisper using /r text hook (diff)
downloadhackchat-c23aa0657e93727384a488e78834faff8b0cb8c1.tar.gz
hackchat-c23aa0657e93727384a488e78834faff8b0cb8c1.zip
fix issue #42
Diffstat (limited to '')
-rw-r--r--client/client.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/client.js b/client/client.js
index 5cf699f..69db7ad 100644
--- a/client/client.js
+++ b/client/client.js
@@ -60,7 +60,7 @@ function localStorageSet(key, val) {
}
var ws;
-var myNick = localStorageGet('my-nick');
+var myNick = localStorageGet('my-nick') || '';
var myChannel = window.location.search.replace(/^\?/, '');
var lastSent = [""];
var lastSentPos = 0;