prevent displaying sentinel pass if no pass was used

This commit is contained in:
mappu 2017-02-05 17:06:58 +13:00
parent b30beac2b5
commit b26b3a695e

View File

@ -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;