Fix precedence of shorter Aka commands in Aka.

This commit is contained in:
Valentin Lorentz 2013-11-09 21:19:19 +00:00
parent 3883b3dfd3
commit 25dc7e092e
1 changed files with 3 additions and 1 deletions

View File

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