fix(pterodactyl): match the correct group in check_if_server_message
All checks were successful
Actions / Lint Code (Ruff & Pylint) (push) Successful in 19s
Actions / Build Documentation (MkDocs) (push) Successful in 24s

This commit is contained in:
Seaswimmer 2024-03-02 12:41:54 -05:00
parent 4c234502f7
commit 7e4d4b348a
Signed by: cswimr
GPG key ID: B8953EC01E5C4063

View file

@ -155,7 +155,7 @@ async def check_if_server_message(text: str) -> Union[bool, str]:
match: Optional[re.Match[str]] = re.match(regex, text) match: Optional[re.Match[str]] = re.match(regex, text)
if match: if match:
logger.debug("Message is a server message") logger.debug("Message is a server message")
return match.group(2) return match.group(1)
logger.debug("Message is not a server message") logger.debug("Message is not a server message")
return False return False