From 447aa0d143a5fe59d4515deff3e1efc0a5512f97 Mon Sep 17 00:00:00 2001 From: Cyberboss Date: Wed, 5 Jul 2017 14:11:05 -0400 Subject: [PATCH] Fixes the default byond chat command --- TGServerService/ChatCommands.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/TGServerService/ChatCommands.cs b/TGServerService/ChatCommands.cs index c560c4bd1b..9ca1d13831 100644 --- a/TGServerService/ChatCommands.cs +++ b/TGServerService/ChatCommands.cs @@ -115,13 +115,13 @@ namespace TGServerService } protected override ExitCode Run(IList parameters) { + var type = TGByondVersion.Installed; if (parameters.Count > 0) if (parameters[0].ToLower() == "--staged") - OutputProc(Instance.GetVersion(TGByondVersion.Staged) ?? "None"); + type = TGByondVersion.Staged; else if (parameters[0].ToLower() == "--latest") - OutputProc(Instance.GetVersion(TGByondVersion.Latest) ?? "Unknown"); - else - OutputProc(Instance.GetVersion(TGByondVersion.Installed) ?? "Uninstalled"); + type = TGByondVersion.Latest; + OutputProc(Instance.GetVersion(type) ?? "None"); return ExitCode.Normal; }