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