Fix infinite recursion in Aka when calling a command in Aka which has a

prefix that is another Aka command.
This commit is contained in:
Valentin Lorentz 2013-11-09 20:45:44 +00:00
parent 9d2c43d2f4
commit 3883b3dfd3
1 changed files with 1 additions and 1 deletions

View File

@ -244,7 +244,7 @@ class Aka(callbacks.Plugin):
if len(args) > 1 and \
callbacks.canonicalName(args[0]) != self.canonicalName():
for cb in dynamic.irc.callbacks: # including this plugin
if cb.getCommand(args[0:-1]):
if cb.name() != self.name() and cb.getCommand(args[0:-1]):
return False
if sys.version_info[0] < 3 and isinstance(name, str):
name = name.decode('utf8')