Trim start of Remote Shell commands (#216)

This commit is contained in:
MaxXor 2015-05-27 19:50:27 +02:00
parent 8d32c58901
commit bf42e9c4f1
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ namespace xServer.Forms
{
if (e.KeyCode == Keys.Enter && !string.IsNullOrEmpty(txtConsoleInput.Text.Trim()))
{
string input = txtConsoleInput.Text;
string input = txtConsoleInput.Text.TrimStart();
txtConsoleInput.Text = string.Empty;
bool isExit = (input.StartsWith("exit") && input.Length > "exit".Length && input[4] == ' ') || input == "exit";