diff --git a/src/callbacks.py b/src/callbacks.py index 9314e9017..3d3f2da70 100644 --- a/src/callbacks.py +++ b/src/callbacks.py @@ -1181,8 +1181,8 @@ class PrivmsgRegexp(Privmsg): break else: spans.add(m.span()) - proxy = self.Proxy(irc, msg) - self.callCommand(name, proxy, msg, m) + irc = self.Proxy(irc, msg) + self.callCommand(name, irc, msg, m) class PrivmsgCommandAndRegexp(Privmsg):