Fixed escapes for unparsed parameters

This commit is contained in:
RogueException
2016-07-13 08:09:23 -03:00
parent 079d9d487d
commit 0eb869211c

View File

@@ -12,8 +12,7 @@ namespace Discord.Commands
Parameter,
QuotedParameter
}
//TODO: Check support for escaping
public static async Task<ParseResult> ParseArgs(Command command, IMessage context, string input, int startPos)
{
CommandParameter curParam = null;
@@ -43,7 +42,7 @@ namespace Discord.Commands
}
}
//Are we escaping the next character?
if (c == '\\')
if (c == '\\' && (curParam == null || !curParam.IsUnparsed))
{
isEscaping = true;
continue;