mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-10 20:22:36 +01:00
Fix precedence of shorter Aka commands in Aka.
This commit is contained in:
parent
3883b3dfd3
commit
25dc7e092e
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user