mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-30 14:59:34 +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:
|
for cb in self.cbs:
|
||||||
if first == cb.canonicalName():
|
if first == cb.canonicalName():
|
||||||
return cb.getCommand(args)
|
return cb.getCommand(args)
|
||||||
if self.isCommandMethod(first):
|
if first == self.canonicalName() and len(args) > 1:
|
||||||
return [first]
|
|
||||||
elif first == self.canonicalName():
|
|
||||||
ret = self.getCommand(args[1:])
|
ret = self.getCommand(args[1:])
|
||||||
if ret:
|
if ret:
|
||||||
return [first] + ret
|
return [first] + ret
|
||||||
|
if self.isCommandMethod(first):
|
||||||
|
return [first]
|
||||||
return []
|
return []
|
||||||
|
|
||||||
def getCommandMethod(self, command):
|
def getCommandMethod(self, command):
|
||||||
|
Loading…
Reference in New Issue
Block a user