fix dktmb issues.

This commit is contained in:
adator
2025-12-14 21:21:21 +01:00
parent 6c797b8efb
commit f2323f7a3c
2 changed files with 16 additions and 3 deletions

View File

@@ -133,11 +133,20 @@ class Irc:
run_once=True, thread_flag=True
)
)
print("start_heartbeat.................")
# await self.ctx.Base.create_thread_io(
# self.ctx.Utils.heartbeat,
# self.ctx, self.beat,
# run_once=True, thread_flag=True
# )
while self.signal:
data = await self.reader.readuntil(b'\r\n')
await self.send_response(data.splitlines())
async def send_response(self, responses:list[bytes]) -> None:
try:
for data in responses:
@@ -1125,7 +1134,7 @@ class Irc:
return None
case 'uptime':
uptime = self.ctx.Utils.get_defender_uptime()
uptime = self.ctx.Utils.get_defender_uptime(self.ctx)
await self.Protocol.send_notice(
nick_from=dnickname,
nick_to=fromuser,