fix(pterodactyl): don't log console messages while server is offline (why even?)
Some checks failed
Actions / Lint Code (Ruff & Pylint) (push) Failing after 19s
Actions / Build Documentation (MkDocs) (push) Successful in 23s

This commit is contained in:
Seaswimmer 2024-03-02 20:10:16 -05:00
parent 58e88f2dd6
commit e2389cec08
Signed by: cswimr
GPG key ID: B8953EC01E5C4063

View file

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