Browse Source

Fix an off-by-one

pull/1123/head
Joe4evr 7 years ago
parent
commit
e1c32078e1
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Discord.Net.Commands/Readers/NamedArgumentTypeReader.cs

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

@@ -107,7 +107,7 @@ namespace Discord.Commands
PropertyInfo GetPropAndValue(out string argv) PropertyInfo GetPropAndValue(out string argv)
{ {
bool quoted = state == ReadState.InQuotedArgument; bool quoted = state == ReadState.InQuotedArgument;
state = (currentRead == input.Length)
state = (currentRead == (quoted ? input.Length - 1 : input.Length))
? ReadState.End ? ReadState.End
: ReadState.LookingForParameter; : ReadState.LookingForParameter;




Loading…
Cancel
Save