mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
Fixed some bugs introduced in my earlier commit, uncovered by the Note tests.
This commit is contained in:
parent
69a83e8530
commit
bd6aa8fda8
@ -1025,12 +1025,12 @@ class Commands(BasePlugin):
|
||||
for cb in self.cbs:
|
||||
if first == cb.canonicalName():
|
||||
return cb.getCommand(args)
|
||||
if self.isCommandMethod(first):
|
||||
return [first]
|
||||
elif first == self.canonicalName():
|
||||
if first == self.canonicalName() and len(args) > 1:
|
||||
ret = self.getCommand(args[1:])
|
||||
if ret:
|
||||
return [first] + ret
|
||||
if self.isCommandMethod(first):
|
||||
return [first]
|
||||
return []
|
||||
|
||||
def getCommandMethod(self, command):
|
||||
|
Loading…
Reference in New Issue
Block a user