Fix array copy error

This commit is contained in:
Noi 2020-05-21 21:18:54 -07:00
parent c78276b6d5
commit 7f8c722b3d

View file

@ -70,7 +70,7 @@ namespace BirthdayBot.UserInterface
}
// Subcommands get a subset of the parameters, to make things a little easier.
var confparam = new string[param.Length - 2]; // subtract one extra??? TODO investigate after port to C#
var confparam = new string[param.Length - 1];
Array.Copy(param, 1, confparam, 0, param.Length - 1);
if (_subcommands.TryGetValue(confparam[0], out ConfigSubcommand h))