Fixed null char being appended to unparsed args

This commit is contained in:
RogueException
2016-06-26 05:08:29 -03:00
parent f59b6b9004
commit 21102e460c

View File

@@ -50,7 +50,7 @@ namespace Discord.Commands
}
//If we're processing an unparsed parameter, ignore all other logic
if (curParam != null && curParam.IsUnparsed)
if (curParam != null && curParam.IsUnparsed && curPos != endPos)
{
argBuilder.Append(c);
continue;