Ignore guest joins/leaves

Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
This commit is contained in:
Ari Archer 2022-07-17 11:37:46 +03:00
parent c930b03613
commit 79ada2836e
Signed by untrusted user who does not match committer: ari
GPG key ID: A50D5B4B599AF8A2

View file

@ -789,7 +789,8 @@ class MessageParser:
@classmethod
def type_adduser(cls, content: List[str]) -> Tuple[str]:
chatlog_entry("Joined", content[1], "JOIN")
if not content[1].startswith("guest"):
chatlog_entry("Joined", content[1], "JOIN")
if RANDOM.randint(0, 1000) == 420:
log(f"Welcoming {content[1]!r}")
@ -799,7 +800,8 @@ class MessageParser:
@classmethod
def type_remuser(cls, content: List[str]) -> Tuple[str]:
chatlog_entry("Left", content[1], "LEAVE")
if not content[1].startswith("guest"):
chatlog_entry("Left", content[1], "LEAVE")
if content[1] in AUTH["users"]:
log(f"Logging {content[1]!r} out")