From 0a74a9367250c94b335f2dda12fa7b1026a793fb Mon Sep 17 00:00:00 2001 From: jesopo Date: Sat, 7 Sep 2019 12:22:54 +0100 Subject: [PATCH] 'reconnections' dict is on IRCBot, not IRCServer --- modules/admin.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/admin.py b/modules/admin.py index ca27ee91..6d0ab654 100644 --- a/modules/admin.py +++ b/modules/admin.py @@ -86,9 +86,9 @@ class Module(ModuleManager.BaseModule): if not server == None: server.disconnect() self.bot.disconnect(server) - elif id in event["server"].reconnections: - event["server"].reconnections[id].cancel() - del event["server"].reconnections[id] + elif id in self.bot.reconnections: + self.bot.reconnections[id].cancel() + del self.bot.reconnections[id] else: raise utils.EventError("Server not connected")