Skip to content

Commit

Permalink
Further improvements on server console
Browse files Browse the repository at this point in the history
  • Loading branch information
spoogemonster committed Jul 24, 2013
1 parent 5270100 commit d158b51
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ServerServices/ServerConsole/ConsoleManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ public void Update()
switch(key.Key)
{
case ConsoleKey.Enter:
if (currentBuffer.Length == 0)
break;
Con.WriteLine("> " + currentBuffer);
commandHistory.Add(commandHistory.Count, currentBuffer);
historyIndex = commandHistory.Count;
Expand Down Expand Up @@ -104,6 +106,8 @@ private void ExecuteCommand(string commandLine)
var cmd = args[0].ToLower();
if (availableCommands.ContainsKey(cmd))
availableCommands[cmd].Execute(args);
else if (cmd.Length == 0)
return;
else
Con.WriteLine("Unknown command: " + cmd);

Expand Down

0 comments on commit d158b51

Please sign in to comment.