mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 04:32: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):
|
def isCommandMethod(self, name):
|
||||||
args = name.split(' ')
|
args = name.split(' ')
|
||||||
|
if '|' in args:
|
||||||
|
return False
|
||||||
if len(args) > 1 and \
|
if len(args) > 1 and \
|
||||||
callbacks.canonicalName(args[0]) != self.canonicalName():
|
callbacks.canonicalName(args[0]) != self.canonicalName():
|
||||||
for cb in dynamic.irc.callbacks: # including this plugin
|
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
|
return False
|
||||||
if sys.version_info[0] < 3 and isinstance(name, str):
|
if sys.version_info[0] < 3 and isinstance(name, str):
|
||||||
name = name.decode('utf8')
|
name = name.decode('utf8')
|
||||||
|
Loading…
Reference in New Issue
Block a user