0

Fixed gettingName never being reset after the name was read

This commit is contained in:
Pepich
2017-05-11 14:05:07 +02:00
parent a6ca6448bd
commit b61ba96fa5

View File

@@ -339,6 +339,7 @@ public class CommandManager {
if (gettingName && cmdName == null) { if (gettingName && cmdName == null) {
/* set the command name to what we just gathered (trimmed) */ /* set the command name to what we just gathered (trimmed) */
cmdName = buffer.toString().trim(); cmdName = buffer.toString().trim();
gettingName = false;
}else{ }else{
/* are we currently in an argument? */ /* are we currently in an argument? */
if (currentArgComp == null) { if (currentArgComp == null) {
@@ -434,6 +435,7 @@ public class CommandManager {
/* we are getting the name and we didn't set it yet, set it */ /* we are getting the name and we didn't set it yet, set it */
if (gettingName && cmdName == null) { if (gettingName && cmdName == null) {
cmdName = buffer.toString().trim(); cmdName = buffer.toString().trim();
gettingName = false;
}else{ }else{
/* we aren't defining a type, put the current text into the sub-command as a constant */ /* we aren't defining a type, put the current text into the sub-command as a constant */
if (currentArgComp == null) { if (currentArgComp == null) {