From e2389cec086e8ae30950a730c1ea24c35599fba5 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Sat, 2 Mar 2024 20:10:16 -0500 Subject: [PATCH] fix(pterodactyl): don't log console messages while server is offline (why even?) --- pterodactyl/websocket.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pterodactyl/websocket.py b/pterodactyl/websocket.py index 340a451..48f8799 100644 --- a/pterodactyl/websocket.py +++ b/pterodactyl/websocket.py @@ -49,7 +49,7 @@ async def establish_websocket_connection(coginstance: Pterodactyl) -> None: regex_blacklist: dict = await config.regex_blacklist() matches = [re.search(regex, msg) for regex in regex_blacklist.values()] - if await config.current_status() in ('running', 'offline', '') and not any(matches): + if await config.current_status() in ('running', '') and not any(matches): content = remove_ansi_escape_codes(msg) if await config.mask_ip() is True: content = mask_ip(content)