mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +01:00
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:
parent
9d2c43d2f4
commit
3883b3dfd3
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user