Fixed escapes for unparsed parameters
This commit is contained in:
@@ -13,7 +13,6 @@ namespace Discord.Commands
|
|||||||
QuotedParameter
|
QuotedParameter
|
||||||
}
|
}
|
||||||
|
|
||||||
//TODO: Check support for escaping
|
|
||||||
public static async Task<ParseResult> ParseArgs(Command command, IMessage context, string input, int startPos)
|
public static async Task<ParseResult> ParseArgs(Command command, IMessage context, string input, int startPos)
|
||||||
{
|
{
|
||||||
CommandParameter curParam = null;
|
CommandParameter curParam = null;
|
||||||
@@ -43,7 +42,7 @@ namespace Discord.Commands
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
//Are we escaping the next character?
|
//Are we escaping the next character?
|
||||||
if (c == '\\')
|
if (c == '\\' && (curParam == null || !curParam.IsUnparsed))
|
||||||
{
|
{
|
||||||
isEscaping = true;
|
isEscaping = true;
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user