Skip to content

Commit

Permalink
Add disconnection reason message
Browse files Browse the repository at this point in the history
  • Loading branch information
Barbosik committed Jun 3, 2016
1 parent 9dae453 commit b05e83e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/CommandList.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ Commands.list = {
for (var j = 0; j < len; j++) {
gameServer.removeNode(client.cells[0]);
}
client.socket.close();
client.socket.close(1000, "Kicked from server");
console.log("[Console] Kicked " + client.name);
break;
}
Expand All @@ -236,7 +236,7 @@ Commands.list = {
for (var j = 0; j < len; j++) {
gameServer.removeNode(client.cells[0]);
}
client.socket.close();
client.socket.close(1000, "Kicked from server");
console.log("[Console] Kicked " + client.name);
}
},
Expand Down

0 comments on commit b05e83e

Please sign in to comment.