This commit is contained in:
əlemi 2022-01-19 02:17:22 +01:00
parent 7c02a3577f
commit 83beb50a42

View file

@ -52,7 +52,7 @@ class ChatEvent:
match = JOIN_LEAVE_MATCHER.search(self.text) match = JOIN_LEAVE_MATCHER.search(self.text)
if match: if match:
self.type = MessageType.JOIN if match["action"] == "join" else MessageType.LEAVE self.type = MessageType.JOIN if match["action"] == "joined" else MessageType.LEAVE
self.message = "joined" if self.type == MessageType.JOIN else "left" self.message = "joined" if self.type == MessageType.JOIN else "left"
self.user = match["usr"] self.user = match["usr"]
return return