client: automatically reconnect with same username if we lose connection to the server
This commit is contained in:
parent
c19b0fe521
commit
e15a6afceb
@ -757,6 +757,12 @@ window.onload = function() {
|
||||
}
|
||||
$("#chatbox").value = pre_login;
|
||||
|
||||
if (have_cleared_once) {
|
||||
// re-log-in automatically
|
||||
write("tab-main").system("Automatically reconnecting as \"" + pre_login + "\"...");
|
||||
submit();
|
||||
}
|
||||
|
||||
if (!have_cleared_once) {
|
||||
write("tab-main").cls();
|
||||
userlist.clear();
|
||||
|
Loading…
Reference in New Issue
Block a user