started passing some more helpful info when preprocessing a command.

This commit is contained in:
jesopo 2016-04-18 16:48:36 +01:00
parent 978fc5a359
commit 2d729b68c3
No known key found for this signature in database
GPG key ID: 0BBDEB2AEFCFFCB3

View file

@ -105,7 +105,8 @@ class Module(object):
target) target)
returns = self.bot.events.on("preprocess").on("command" 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: for returned in returns:
if returned: if returned:
stderr.write(returned).send() stderr.write(returned).send()