From bec3c8424f2612a6b58244ae2462a17455da8303 Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 3 Aug 2017 08:49:07 -0400 Subject: fire hydrant and banana cowfiles --- ShiftOS_TheReturn/CommandParser.cs | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) (limited to 'ShiftOS_TheReturn') diff --git a/ShiftOS_TheReturn/CommandParser.cs b/ShiftOS_TheReturn/CommandParser.cs index 7568b98..8f25668 100644 --- a/ShiftOS_TheReturn/CommandParser.cs +++ b/ShiftOS_TheReturn/CommandParser.cs @@ -121,20 +121,28 @@ namespace ShiftOS.Engine i = 0; } - CommandFormat part = parts[i]; - string inp = text.Substring(position); + CommandFormat part = parts[i]; + string inp = text.Substring(position); string res = part.CheckValidity(inp); if(part is CommandFormatText) { - if(res == "+FALSE+") + if (res == "+FALSE+") { - if(id_found == false) +#if SUPERMOSQUITO_DIAGNOSIS + if (!inp.Remove(0, 1).Contains(" ")) { - id_found = true; - id_text = inp.Remove(0,1); - res = ""; - arguments.Add("id", id_text); + + + if (id_found == false) + { + id_found = true; + id_text = inp.Remove(0, 1); + res = ""; + arguments.Add("id", id_text); + + } } +#endif } } -- cgit v1.2.3