From fec91b4495f142fcedae7bd759d364f5d3d8c034 Mon Sep 17 00:00:00 2001 From: Lucas Fryzek Date: Mon, 7 Oct 2024 16:56:01 +0100 Subject: chat: Fix user leave message not being parsed as system msg --- src/chat.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/chat.py b/src/chat.py index 743778e..ede2817 100644 --- a/src/chat.py +++ b/src/chat.py @@ -140,7 +140,8 @@ class WeegtkChat(Adw.Bin): # TODO figure out if there is a way to check if a message is from the # the system instead of from a user - if len(user) == 0 or user[0] == "=" or user[0] == "-" or user[0] == "[": + if (len(user) == 0 or user[0] == "=" or user[0] == "-" or user[0] == "[" + or user[0] == "<"): user = f"{self.data['short_name']} {user}" msg_type = "system" -- cgit