mirror of
https://github.com/kuitoi/kuitoi-Server.git
synced 2025-08-17 16:25:36 +00:00
Update Async logic
This commit is contained in:
parent
e9919459af
commit
4629fbc43a
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user