mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 20:52:42 +01:00
Removed bug.
This commit is contained in:
parent
cbbc2818ee
commit
8b200efaa0
@ -759,9 +759,9 @@ class PrivmsgRegexp(Privmsg):
|
|||||||
debug.msg(s)
|
debug.msg(s)
|
||||||
self.res.sort(lambda (r1, m1), (r2, m2): cmp(m1.__name__, m2.__name__))
|
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:
|
try:
|
||||||
Privmsg.callCommand(self, irc, msg, *L)
|
Privmsg.callCommand(self, method, irc, msg, *L)
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
debug.recoverableException()
|
debug.recoverableException()
|
||||||
irc.error(msg, debug.exnToString(e))
|
irc.error(msg, debug.exnToString(e))
|
||||||
@ -784,7 +784,8 @@ class PrivmsgRegexp(Privmsg):
|
|||||||
self.rateLimiter.put(msg)
|
self.rateLimiter.put(msg)
|
||||||
msg = self.rateLimiter.get()
|
msg = self.rateLimiter.get()
|
||||||
if msg:
|
if msg:
|
||||||
self.callCommand(method, irc, msg, m)
|
proxy = IrcObjectProxyRegexp(irc)
|
||||||
|
self.callCommand(method, proxy, msg, m)
|
||||||
|
|
||||||
|
|
||||||
class PrivmsgCommandAndRegexp(Privmsg):
|
class PrivmsgCommandAndRegexp(Privmsg):
|
||||||
|
Loading…
Reference in New Issue
Block a user