Fixes the default byond chat command

This commit is contained in:
Cyberboss
2017-07-05 14:11:05 -04:00
parent c042f695c0
commit 447aa0d143
+4 -4
View File
@@ -115,13 +115,13 @@ namespace TGServerService
}
protected override ExitCode Run(IList<string> 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;
}