Added config security check.

This commit is contained in:
rainbow napkin 2024-12-28 16:42:29 -05:00
parent 3de4bff68d
commit 5a262725c7
3 changed files with 68 additions and 4 deletions

View file

@ -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);
}