mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-20 01:19:26 +01:00
Aka: Make sure the length of the 'args' list is always strictly decreasing when making a recursive call.
This commit is contained in:
parent
583b1baf64
commit
56570b3c9c
@ -271,7 +271,7 @@ class Aka(callbacks.Plugin):
|
||||
first = args[0]
|
||||
for cb in self.cbs:
|
||||
if first == cb.canonicalName():
|
||||
return cb.getCommand(args)
|
||||
return cb.getCommand(args[1:])
|
||||
if first == self.canonicalName() and len(args) > 1:
|
||||
ret = self.getCommand(args[1:])
|
||||
if ret:
|
||||
|
Loading…
Reference in New Issue
Block a user