From 2d729b68c3f1d52608257742b0136bc4be1b1ea4 Mon Sep 17 00:00:00 2001 From: jesopo Date: Mon, 18 Apr 2016 16:48:36 +0100 Subject: [PATCH] started passing some more helpful info when preprocessing a command. --- modules/commands.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/commands.py b/modules/commands.py index 5e0456f5..3c22a6d1 100644 --- a/modules/commands.py +++ b/modules/commands.py @@ -105,7 +105,8 @@ class Module(object): target) returns = self.bot.events.on("preprocess").on("command" - ).call(hook=hook, user=event["user"], server=event["server"]) + ).call(hook=hook, user=event["user"], server=event["server"], + target=target, is_channel=is_channel) for returned in returns: if returned: stderr.write(returned).send()