diff options
author | Lucas Fryzek <lucas.fryzek@fryzekconcepts.com> | 2024-10-07 16:56:01 +0100 |
---|---|---|
committer | Lucas Fryzek <lucas.fryzek@fryzekconcepts.com> | 2024-10-07 16:56:01 +0100 |
commit | fec91b4495f142fcedae7bd759d364f5d3d8c034 (patch) | |
tree | 930c2189157172caf8df27e2f482dc44e0bd8459 | |
parent | 5a0dd30a7b3d81c3fe870c2ccbac1719f6abb8fd (diff) |
chat: Fix user leave message not being parsed as system msg
-rw-r--r-- | src/chat.py | 3 |
1 files changed, 2 insertions, 1 deletions
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" |