Made ordering in PrivmsgCommandAndRegexp depend on the list of regexp-methods.

This commit is contained in:
Jeremy Fincher 2003-10-21 21:15:29 +00:00
parent 9cb41e6420
commit cad2269ba5
1 changed files with 0 additions and 3 deletions

View File

@ -804,9 +804,6 @@ class PrivmsgCommandAndRegexp(Privmsg):
method = getattr(self, name)
r = re.compile(method.__doc__, self.flags)
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):
try: