From dc889096a530ce9f72bd7abab524c6db4183e10d Mon Sep 17 00:00:00 2001 From: benji7425 Date: Sun, 24 Sep 2017 21:39:05 +0100 Subject: [PATCH] Fix incorrect parameter being passed to internal command handling --- discord-bot-core/HandleMessage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord-bot-core/HandleMessage.js b/discord-bot-core/HandleMessage.js index 6a48bac..5a6b235 100644 --- a/discord-bot-core/HandleMessage.js +++ b/discord-bot-core/HandleMessage.js @@ -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)