Fixed some bugs introduced in my earlier commit, uncovered by the Note tests.

This commit is contained in:
Jeremy Fincher 2005-03-09 10:42:16 +00:00
parent 69a83e8530
commit bd6aa8fda8
1 changed files with 3 additions and 3 deletions

View File

@ -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):