mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-02 17:29:22 +01:00
Made ordering in PrivmsgCommandAndRegexp depend on the list of regexp-methods.
This commit is contained in:
parent
9cb41e6420
commit
cad2269ba5
@ -804,9 +804,6 @@ class PrivmsgCommandAndRegexp(Privmsg):
|
|||||||
method = getattr(self, name)
|
method = getattr(self, name)
|
||||||
r = re.compile(method.__doc__, self.flags)
|
r = re.compile(method.__doc__, self.flags)
|
||||||
self.addressedRes.append((r, method))
|
self.addressedRes.append((r, method))
|
||||||
self.res.sort(lambda (r1, m1), (r2, m2): cmp(m1.__name__, m2.__name__))
|
|
||||||
self.addressedRes.sort(lambda (r1, m1), (r2, m2): cmp(m1.__name__,
|
|
||||||
m2.__name__))
|
|
||||||
|
|
||||||
def callCommand(self, f, irc, msg, *L, **kwargs):
|
def callCommand(self, f, irc, msg, *L, **kwargs):
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user