From b300fc34c5cb01d33c8c1cec6e5ff77c08163851 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Tue, 26 Nov 2013 16:58:28 +0100 Subject: [PATCH] RateLimit: Adapt to API change of Limnoria for pre-command callbacks (aea77d64e7574ef9f). --- RateLimit/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RateLimit/plugin.py b/RateLimit/plugin.py index c6dca57..fea9a86 100644 --- a/RateLimit/plugin.py +++ b/RateLimit/plugin.py @@ -115,7 +115,7 @@ class RateLimit(callbacks.Plugin): callbacks.Commands.pre_command_callbacks.remove( self._pre_command_callback) - def _pre_command_callback(self, command, irc, msg, *args, **kwargs): + def _pre_command_callback(self, plugin, command, irc, msg, *args, **kwargs): command = ' '.join(command) try: user = ircdb.users.getUserId(msg.prefix)