Fix incorrect parameter being passed to internal command handling

This commit is contained in:
benji7425 2017-09-24 21:39:05 +01:00
parent a744b1c69c
commit dc889096a5
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ function handleMessage(client, message, commands, guildData) {
command = commands[Object.keys(commands).find(x => commands[x].name.toLowerCase() === (split[1] || "").toLowerCase())];
if (!command)
handleInternalCommand(message, params);
handleInternalCommand(message, split);
else if (params.length < command.expectedParamCount)
message.reply(`Incorrect syntax!\n**Expected:** *${botName} ${command.syntax}*\n**Need help?** *${botName} help*`);
else if(isMemberAdmin || !command.admin)