I broke it even more with this PR, lol
Remainder parameters weren't parsed properly.
This commit is contained in:
@@ -33,6 +33,13 @@ namespace Discord.Commands
|
|||||||
else
|
else
|
||||||
c = '\0';
|
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 we're not currently processing one, are we starting the next argument yet?
|
||||||
if (curPart == ParserPart.None)
|
if (curPart == ParserPart.None)
|
||||||
{
|
{
|
||||||
@@ -76,13 +83,6 @@ namespace Discord.Commands
|
|||||||
continue;
|
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?
|
//Has this parameter ended yet?
|
||||||
string argString = null;
|
string argString = null;
|
||||||
if (curPart == ParserPart.Parameter)
|
if (curPart == ParserPart.Parameter)
|
||||||
|
|||||||
Reference in New Issue
Block a user