mirror of
https://github.com/NoiTheCat/BirthdayBot.git
synced 2024-11-21 21:54:36 +00:00
Fix array copy error
This commit is contained in:
parent
c78276b6d5
commit
7f8c722b3d
1 changed files with 1 additions and 1 deletions
|
@ -70,7 +70,7 @@ namespace BirthdayBot.UserInterface
|
||||||
}
|
}
|
||||||
|
|
||||||
// Subcommands get a subset of the parameters, to make things a little easier.
|
// 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);
|
Array.Copy(param, 1, confparam, 0, param.Length - 1);
|
||||||
|
|
||||||
if (_subcommands.TryGetValue(confparam[0], out ConfigSubcommand h))
|
if (_subcommands.TryGetValue(confparam[0], out ConfigSubcommand h))
|
||||||
|
|
Loading…
Reference in a new issue