fix(pterodactyl): forgot two!

This commit is contained in:
Seaswimmer 2024-03-04 23:13:37 -05:00
parent 13dba790b7
commit 85d5316f43
Signed by untrusted user: cswimr
GPG key ID: B8953EC01E5C4063

View file

@ -156,13 +156,11 @@ def remove_ansi_escape_codes(text: str) -> str:
return ansi_escape.sub('', text) return ansi_escape.sub('', text)
async def check_if_server_message(text: str) -> Union[bool, str]: async def check_if_server_message(text: str) -> Union[bool, str]:
logger.debug("Checking if message is a server message")
regex = await config.server_regex() regex = await config.server_regex()
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(1) return match.group(1)
logger.debug("Message is not a server message")
return False return False
async def check_if_chat_message(text: str) -> Union[bool, dict]: async def check_if_chat_message(text: str) -> Union[bool, dict]: