diff --git a/client/dcwebui.js b/client/dcwebui.js index 1b2cd5e..9539402 100644 --- a/client/dcwebui.js +++ b/client/dcwebui.js @@ -310,7 +310,7 @@ var submit = function() { } } - persistence_set("login", hub_last_nick+":"+hub_pass); + persistence_set("login", hub_pass.length > 0 ? hub_last_nick+":"+hub_pass : hub_last_nick); sock.emit('hello', {'nick' : hub_last_nick, 'pass' : hub_pass}); $("#chatbox").disabled = true;