Make type_chat ignore messages from server

Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
This commit is contained in:
Ari Archer 2022-07-15 00:53:56 +03:00
parent 309ad045c7
commit f77a1a040c
Signed by untrusted user who does not match committer: ari
GPG key ID: A50D5B4B599AF8A2

View file

@ -555,7 +555,7 @@ class MessageParser:
@classmethod
def type_chat(cls, content: List[str]) -> Tuple[str]:
if len(content) > 3:
if len(content) > 3 or not content[0].strip():
return cls.type_nop(content)
user: str = content[0]