Some optimizations in one of the most expensive bits of the server, namely the command handler.

This commit is contained in:
Griatch 2012-04-25 18:47:03 +02:00
parent 21eed74c8d
commit a8373c685f
4 changed files with 23 additions and 17 deletions

View file

@ -392,7 +392,7 @@ class CmdSet(object):
"""
names = []
if caller:
[names.extend([cmd.key] + cmd.aliases) for cmd in self.commands if cmd.access(caller)]
[names.extend(cmd._keyaliases) for cmd in self.commands if cmd.access(caller)]
else:
[names.extend([cmd.key] + cmd.aliases) for cmd in self.commands]
[names.extend(cmd._keyaliases) for cmd in self.commands]
return names