From 07049e71c000f51ee5ff17dd802b918d520c8a34 Mon Sep 17 00:00:00 2001 From: JustArchi Date: Sat, 12 Mar 2016 06:01:55 +0100 Subject: [PATCH] Misc --- ArchiSteamFarm/Program.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ArchiSteamFarm/Program.cs b/ArchiSteamFarm/Program.cs index f1dc07ec7..3545eea4a 100644 --- a/ArchiSteamFarm/Program.cs +++ b/ArchiSteamFarm/Program.cs @@ -279,6 +279,10 @@ namespace ArchiSteamFarm { } internal static string GetUserInput(string botLogin, EUserInputType userInputType, string extraInformation = null) { + if (userInputType == EUserInputType.Unknown) { + return null; + } + string result; lock (ConsoleLock) { ConsoleIsBusy = true; @@ -312,6 +316,9 @@ namespace ArchiSteamFarm { case EUserInputType.TwoFactorAuthentication: Console.Write("<" + botLogin + "> Please enter your 2 factor auth code from your authenticator app: "); break; + default: + Console.Write("<" + botLogin + "> Please enter not documented yet value of \"" + userInputType + "\": "); + break; } result = Console.ReadLine(); Console.Clear(); // For security purposes