Aka: Speed up commands listing by statically listing builtin commands instead of invoking parent's listCommands().

This commit is contained in:
Valentin Lorentz 2013-08-21 20:56:18 +02:00
parent d2762d9fb9
commit ccafbf4847

View File

@ -253,7 +253,7 @@ class Aka(callbacks.Plugin):
return list(set(map(callbacks.formatCommand,
self._db.get_aka_list(channel) +
self._db.get_aka_list('global')) +
self.__parent.listCommands()))
['add', 'remove', 'lock', 'unlock', 'importaliasdatabase']))
def getCommand(self, args):
canonicalName = callbacks.canonicalName