mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-20 01:19:26 +01:00
Aka: Speed up commands listing by statically listing builtin commands instead of invoking parent's listCommands().
This commit is contained in:
parent
d2762d9fb9
commit
ccafbf4847
@ -253,7 +253,7 @@ class Aka(callbacks.Plugin):
|
|||||||
return list(set(map(callbacks.formatCommand,
|
return list(set(map(callbacks.formatCommand,
|
||||||
self._db.get_aka_list(channel) +
|
self._db.get_aka_list(channel) +
|
||||||
self._db.get_aka_list('global')) +
|
self._db.get_aka_list('global')) +
|
||||||
self.__parent.listCommands()))
|
['add', 'remove', 'lock', 'unlock', 'importaliasdatabase']))
|
||||||
|
|
||||||
def getCommand(self, args):
|
def getCommand(self, args):
|
||||||
canonicalName = callbacks.canonicalName
|
canonicalName = callbacks.canonicalName
|
||||||
|
Loading…
Reference in New Issue
Block a user