From 819f4e0680dc8225355924e87bc71938605b98f7 Mon Sep 17 00:00:00 2001 From: jesopo Date: Fri, 12 Oct 2018 18:07:23 +0100 Subject: Pass context-wrapped timers to each module, add ModuleManager.BaseModule.on_load --- modules/channel_op.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/channel_op.py') diff --git a/modules/channel_op.py b/modules/channel_op.py index a7070ba1..e789b4c4 100644 --- a/modules/channel_op.py +++ b/modules/channel_op.py @@ -101,7 +101,7 @@ class Module(ModuleManager.BaseModule): hostmask = self._ban_user(event["target"], True, event["server"].get_user(event["args_split"][0])) - self.bot.timers.add_persistent("unban", timeout, + self.timers.add_persistent("unban", timeout, server_id=event["server"].id, channel_name=event["target"].name, hostmask=hostmask) -- cgit v1.3.1-10-gc9f91