aboutsummaryrefslogtreecommitdiff
path: root/modules/check_mode.py
diff options
context:
space:
mode:
Diffstat (limited to 'modules/check_mode.py')
-rw-r--r--modules/check_mode.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/check_mode.py b/modules/check_mode.py
index a7a8e788..4fb2b783 100644
--- a/modules/check_mode.py
+++ b/modules/check_mode.py
@@ -1,10 +1,9 @@
class Module(object):
- def __init__(self, bot):
+ def __init__(self, bot, events):
self.bot = bot
- bot.events.on("preprocess").on("command").hook(
- self.preprocess_command)
+ events.on("preprocess").on("command").hook(self.preprocess_command)
def preprocess_command(self, event):
if event["is_channel"] and event["hook"].kwargs.get(