aboutsummaryrefslogtreecommitdiff
path: root/modules/channel_op.py
diff options
context:
space:
mode:
authorGravatar jesopo2018-10-12 18:07:23 +0100
committerGravatar jesopo2018-10-12 18:07:23 +0100
commit819f4e0680dc8225355924e87bc71938605b98f7 (patch)
tree435f17eccda20a1723f51330ee0403668c76afcd /modules/channel_op.py
parentAdd TimersContext, to be able to purge timers when modules are unloaded (diff)
signature
Pass context-wrapped timers to each module, add ModuleManager.BaseModule.on_load
Diffstat (limited to 'modules/channel_op.py')
-rw-r--r--modules/channel_op.py2
1 files changed, 1 insertions, 1 deletions
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)