Fixed a couple arg parsing errors

This commit is contained in:
RogueException
2015-11-03 21:01:42 -04:00
parent 83696c359b
commit 9a783df90a
2 changed files with 8 additions and 1 deletions

View File

@@ -31,6 +31,8 @@ namespace Discord.Commands
CommandMap nextGroup;
if (_subCommands.TryGetValue(nextPart, out nextGroup))
return nextGroup.GetMap(index + 1, parts);
else
return null;
}
return this;
}

View File

@@ -148,7 +148,12 @@ namespace Discord.Commands
}
if (argList.Count < command.MinArgs)
return CommandErrorType.BadArgCount;
{
/*if (command._parameters[command._parameters.Length - 1].Type == ParameterType.Unparsed)
argList.Add("");
else*/
return CommandErrorType.BadArgCount;
}
args = argList.ToArray();
return null;