Auto re-login guests upon reconnect

This commit is contained in:
calzoneman 2013-06-25 10:27:35 -04:00
parent ccae0ea76e
commit 2769543d04
1 changed files with 6 additions and 0 deletions

View File

@ -22,6 +22,12 @@ Callbacks = {
session: SESSION
});
}
// Guest auto-relogin
else if(CLIENT.name) {
socket.emit("login", {
name: CLIENT.name
});
}
$("<div/>").addClass("server-msg-reconnect")
.text("Connected")
.appendTo($("#messagebuffer"));