From 9e92d82817fb12a1b0cc955f5532608b6bee3347 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Sat, 2 Mar 2024 19:43:28 -0500 Subject: [PATCH] fix(pterodactyl): fixed trying to match against dictionary keys instead of their values --- pterodactyl/websocket.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pterodactyl/websocket.py b/pterodactyl/websocket.py index 0caf5e7..a6f6fe4 100644 --- a/pterodactyl/websocket.py +++ b/pterodactyl/websocket.py @@ -46,8 +46,8 @@ async def establish_websocket_connection(coginstance: Pterodactyl) -> None: if json.loads(message)['event'] == 'console output' and await config.console_channel() is not None: msg = json.loads(message)['args'][0] - regex_blacklist = await config.regex_blacklist() - if await config.current_status() in ('running', 'offline', '') and not any(re.match(regex, msg) for regex in regex_blacklist): + regex_blacklist: dict = await config.regex_blacklist() + if await config.current_status() in ('running', 'offline', '') and not any(re.match(regex, msg) for regex in regex_blacklist.values()): content = remove_ansi_escape_codes(msg) if await config.mask_ip() is True: content = mask_ip(content)