fix: ignore escape behavior on remainder parameters (#994)

Co-authored-by: Quahu <quahu@gmail.com>
This commit is contained in:
Christopher Felegy
2019-06-05 17:13:29 -04:00
parent a8c853f1ec
commit 2e95c4913b

View File

@@ -53,6 +53,13 @@ namespace Discord.Commands
else
c = '\0';
//If we're processing an remainder parameter, ignore all other logic
if (curParam != null && curParam.IsRemainder && curPos != endPos)
{
argBuilder.Append(c);
continue;
}
//If this character is escaped, skip it
if (isEscaping)
{
@@ -79,13 +86,6 @@ namespace Discord.Commands
continue;
}
//If we're processing an 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)
{