Added config security check.
This commit is contained in:
parent
3de4bff68d
commit
5a262725c7
3 changed files with 68 additions and 4 deletions
|
|
@ -34,4 +34,8 @@ module.exports.socketCriticalExceptionHandler = function(socket, err){
|
|||
//if not yell at the browser for fucking up, and tell it what it did wrong.
|
||||
socket.emit("kick", {type: "Disconnected", reason: `Server Error: ${err.message}`});
|
||||
return socket.disconnect();
|
||||
}
|
||||
|
||||
module.exports.consoleWarn = function(string){
|
||||
console.warn('\x1b[31m\x1b[4m%s\x1b[0m',string);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue