Don't warn about authenticated users being impersonators

Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
This commit is contained in:
Ari Archer 2022-07-22 19:35:15 +03:00
parent c9c3c952c3
commit f3fbad7e5a
Signed by untrusted user who does not match committer: ari
GPG key ID: A50D5B4B599AF8A2

View file

@ -805,7 +805,7 @@ class MessageParser:
str_msg: str = " ".join(content[1:])
user: str = content[0].strip()
if user.lower() in CONFIG["impersonators"]:
if user.lower() in CONFIG["impersonators"] and user not in AUTH["users"]:
return guac_msg("chat", f"@{user} is an impersonator. Do not trust them.")
if user and user != CONFIG["bot-name"]: