added action in join/leave events
This commit is contained in:
parent
964a885552
commit
7c02a3577f
1 changed files with 1 additions and 0 deletions
|
@ -53,5 +53,6 @@ class ChatEvent:
|
|||
match = JOIN_LEAVE_MATCHER.search(self.text)
|
||||
if match:
|
||||
self.type = MessageType.JOIN if match["action"] == "join" else MessageType.LEAVE
|
||||
self.message = "joined" if self.type == MessageType.JOIN else "left"
|
||||
self.user = match["usr"]
|
||||
return
|
||||
|
|
Loading…
Reference in a new issue