From 798b37104bf138a73ffb3d78733594fda1f1a978 Mon Sep 17 00:00:00 2001 From: Holly Date: Wed, 20 Apr 2022 07:25:40 +0100 Subject: [PATCH] Throw if there is an attempt to log the bot out (yes this has happened) --- server/Packets/Logout.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/Packets/Logout.js b/server/Packets/Logout.js index 4c36c3a..d475313 100644 --- a/server/Packets/Logout.js +++ b/server/Packets/Logout.js @@ -2,6 +2,8 @@ const osu = require("osu-packet"), consoleHelper = require("../../consoleHelper.js"); module.exports = function(CurrentUser) { + if (CurrentUser.uuid === "bot") throw "Tried to log bot out, WTF???"; + const logoutStartTime = Date.now(); const streamList = global.StreamsHandler.getStreams();