diff --git a/src/Discord.Net.Commands/CommandParser.cs b/src/Discord.Net.Commands/CommandParser.cs index ffbf1ea93..1d09a8b4b 100644 --- a/src/Discord.Net.Commands/CommandParser.cs +++ b/src/Discord.Net.Commands/CommandParser.cs @@ -33,6 +33,13 @@ namespace Discord.Commands else c = '\0'; + //If we're processing a remainder parameter, ignore all other logic + if (curParam != null && curParam.IsRemainder && curPos != endPos) + { + argBuilder.Append(c); + continue; + } + //If we're not currently processing one, are we starting the next argument yet? if (curPart == ParserPart.None) { @@ -76,13 +83,6 @@ namespace Discord.Commands continue; } - //If we're processing a remainder parameter, ignore all other logic - if (curParam != null && curParam.IsRemainder && curPos != endPos) - { - argBuilder.Append(c); - continue; - } - //Has this parameter ended yet? string argString = null; if (curPart == ParserPart.Parameter)