diff options
| author | 2018-10-12 18:07:23 +0100 | |
|---|---|---|
| committer | 2018-10-12 18:07:23 +0100 | |
| commit | 819f4e0680dc8225355924e87bc71938605b98f7 (patch) | |
| tree | 435f17eccda20a1723f51330ee0403668c76afcd /modules/channel_op.py | |
| parent | Add 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.py | 2 |
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) |
