From 4629fbc43a89c9e476bc0ab95b198d32745bcc84 Mon Sep 17 00:00:00 2001 From: SantaSpeen Date: Sat, 15 Jul 2023 15:36:45 +0300 Subject: [PATCH] Update Async logic --- src/core/Client.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/core/Client.py b/src/core/Client.py index 1131216..983d974 100644 --- a/src/core/Client.py +++ b/src/core/Client.py @@ -221,7 +221,10 @@ class Client: await self.tcp_send(b"Sn" + bytes(self.nick, "utf-8"), to_all=True) case "C": # Chat - ev.call_event("chat_receive", f"{data}") + # TODO: Handle chat event + ev_data = ev.call_event("chat_receive", f"{data}") + d2 = await ev.call_async_event("chat_receive", f"{data}") + ev_data.extend(d2) await self.tcp_send(data, to_all=True) async def remove_me(self):