diff options
| author | Michael <[email protected]> | 2017-08-03 08:49:07 -0400 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-08-03 08:49:07 -0400 |
| commit | bec3c8424f2612a6b58244ae2462a17455da8303 (patch) | |
| tree | 44480ef182795c392e4651afcf6cc57150664edc /ShiftOS_TheReturn | |
| parent | 19fceb8326fc395bee1fd858ec6617564cbbac74 (diff) | |
| download | shiftos_thereturn-bec3c8424f2612a6b58244ae2462a17455da8303.tar.gz shiftos_thereturn-bec3c8424f2612a6b58244ae2462a17455da8303.tar.bz2 shiftos_thereturn-bec3c8424f2612a6b58244ae2462a17455da8303.zip | |
fire hydrant and banana cowfiles
Diffstat (limited to 'ShiftOS_TheReturn')
| -rw-r--r-- | ShiftOS_TheReturn/CommandParser.cs | 24 |
1 files changed, 16 insertions, 8 deletions
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 } } |
