Refactor user.js

This commit is contained in:
calzoneman 2014-01-05 19:30:45 -06:00
parent 1c79024984
commit b5a45a25bf
2 changed files with 432 additions and 0 deletions

View file

@ -103,6 +103,7 @@ function handleConnection(sock) {
user.name = sock.handshake.user.name;
user.global_rank = sock.handshake.user.global_rank;
user.loggedIn = true;
user.emit("login");
user.socket.emit("login", {
success: true,
name: user.name