Some optimizations in one of the most expensive bits of the server, namely the command handler.
This commit is contained in:
parent
21eed74c8d
commit
a8373c685f
4 changed files with 23 additions and 17 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue