From 7e4d4b348a415c41c4383ef5e816d64f0c9d8150 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Sat, 2 Mar 2024 12:41:54 -0500 Subject: [PATCH] fix(pterodactyl): match the correct group in check_if_server_message --- pterodactyl/websocket.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pterodactyl/websocket.py b/pterodactyl/websocket.py index 353e224..76922e7 100644 --- a/pterodactyl/websocket.py +++ b/pterodactyl/websocket.py @@ -155,7 +155,7 @@ async def check_if_server_message(text: str) -> Union[bool, str]: match: Optional[re.Match[str]] = re.match(regex, text) if match: logger.debug("Message is a server message") - return match.group(2) + return match.group(1) logger.debug("Message is not a server message") return False