From 8b200efaa0f9c1e3bb3531cf3fef2041bf55b95c Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Thu, 23 Oct 2003 14:46:56 +0000 Subject: [PATCH] Removed bug. --- src/callbacks.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/callbacks.py b/src/callbacks.py index c5746d534..1c7afbc10 100644 --- a/src/callbacks.py +++ b/src/callbacks.py @@ -759,9 +759,9 @@ class PrivmsgRegexp(Privmsg): debug.msg(s) self.res.sort(lambda (r1, m1), (r2, m2): cmp(m1.__name__, m2.__name__)) - def callCommand(self, irc, msg, *L): + def callCommand(self, method, irc, msg, *L): try: - Privmsg.callCommand(self, irc, msg, *L) + Privmsg.callCommand(self, method, irc, msg, *L) except Exception, e: debug.recoverableException() irc.error(msg, debug.exnToString(e)) @@ -784,7 +784,8 @@ class PrivmsgRegexp(Privmsg): self.rateLimiter.put(msg) msg = self.rateLimiter.get() if msg: - self.callCommand(method, irc, msg, m) + proxy = IrcObjectProxyRegexp(irc) + self.callCommand(method, proxy, msg, m) class PrivmsgCommandAndRegexp(Privmsg):