From b16b9e70f2e3f940338ebfca3ea006d153e8682d Mon Sep 17 00:00:00 2001 From: Simon Date: Sun, 16 Oct 2016 09:48:46 +0300 Subject: [PATCH] Add brackets --- TShockAPI/Commands.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/TShockAPI/Commands.cs b/TShockAPI/Commands.cs index eaf69ec6..f31fee14 100755 --- a/TShockAPI/Commands.cs +++ b/TShockAPI/Commands.cs @@ -630,11 +630,13 @@ namespace TShockAPI int index = -1; for (int i = 0; i < cmdText.Length; i++) + { if (IsWhiteSpace(cmdText[i])) { index = i; break; } + } string cmdName; if (index == 0) // Space after the command specifier should not be supported {