Browse Source

Fixed null char being appended to unparsed args

pull/108/head
RogueException 9 years ago
parent
commit
21102e460c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Discord.Net.Commands/CommandParser.cs

+ 1
- 1
src/Discord.Net.Commands/CommandParser.cs View File

@@ -50,7 +50,7 @@ namespace Discord.Commands
} }


//If we're processing an unparsed parameter, ignore all other logic //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); argBuilder.Append(c);
continue; continue;


Loading…
Cancel
Save