From bccf3c855a0f167c90567a3cc92bf5b972064174 Mon Sep 17 00:00:00 2001 From: xfnw Date: Thu, 12 May 2022 08:38:29 -0600 Subject: [PATCH] fix addspook not deleting itself --- modules/admin.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/admin.py b/modules/admin.py index a90a304..6018098 100644 --- a/modules/admin.py +++ b/modules/admin.py @@ -153,8 +153,8 @@ class Ot: def __init__(self, al, ms): self.ms = str(ms) self.al = str(al) - self.__class__.ots[al] = ms - shared.rawm[al] = self.ot + self.__class__.ots[self.al] = ms + shared.rawm[self.al] = self.ot async def ot(alself, self, c, n, m): if alself.al in m and n != self.nickname: @@ -173,12 +173,12 @@ class Spook: def __init__(self, al, ms): self.ms = str(ms) self.al = str(al) - self.__class__.spooks[al] = ms - shared.rawm[al] = self.spook + self.__class__.spooks[self.al] = ms + shared.rawm[self.al] = self.spook async def spook(alself, self, c, n, m): if alself.al in m and n != self.nickname: - asyncio.create_task(self.send(build("PRIVMSG", [c, alself.ms.format(m)]))) + self.send(build("PRIVMSG", [c, alself.ms.format(m)])) shared.rawm.pop(alself.al)