update clause

This commit is contained in:
Niko 2018-04-03 13:59:22 -04:00 committed by GitHub
parent 298479ea9c
commit 0de418b560
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -77,12 +77,8 @@ function checkMessageForCommand(msg, isEdit) {
return; return;
} }
} }
let alias = aliases[cmdTxt];
if (alias) { let cmd = aliases.hasOwnProperty(cmdTxt) ? commands[aliases[cmdTxt]] : commands[cmdTxt];
var cmd = commands[alias];
} else {
var cmd = commands[cmdTxt];
}
if (cmdTxt === 'help') { if (cmdTxt === 'help') {
//help is special since it iterates over the other commands //help is special since it iterates over the other commands
if (suffix) { if (suffix) {