From aea77d64e7574ef9f01b6ec057815e23681beaca Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Tue, 26 Nov 2013 16:57:33 +0100 Subject: [PATCH] callbacks.py: Pass a reference to the plugin to pre-command callbacks. --- src/callbacks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/callbacks.py b/src/callbacks.py index 502039c96..7f6729185 100644 --- a/src/callbacks.py +++ b/src/callbacks.py @@ -1239,7 +1239,7 @@ class Commands(BasePlugin): def callCommand(self, command, irc, msg, *args, **kwargs): # We run all callbacks before checking if one of them returned True - if any(bool, list(cb(command, irc, msg, *args, **kwargs) + if any(bool, list(cb(self, command, irc, msg, *args, **kwargs) for cb in self.pre_command_callbacks)): return method = self.getCommandMethod(command)