Merge pull request #550 from grocky/fix-#541

Refactor show commands to extract keys from the object
This commit is contained in:
Peter Cottle 2019-03-01 20:07:04 -08:00 committed by GitHub
commit 1471f08c99
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -97,9 +97,10 @@ var instantCommands = [
intl.str('show-all-commands'),
'<br/>'
];
allCommands.forEach(function(regex, command) {
lines.push(command);
});
Object.keys(allCommands)
.forEach(function(command) {
lines.push(command);
});
throw new CommandResult({
msg: lines.join('\n')