diff --git a/ArchiSteamFarm/Program.cs b/ArchiSteamFarm/Program.cs index f1dc07ec71717..3545eea4afbf1 100644 --- a/ArchiSteamFarm/Program.cs +++ b/ArchiSteamFarm/Program.cs @@ -279,6 +279,10 @@ internal static async Task LimitSteamRequestsAsync() { } 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 @@ internal static string GetUserInput(string botLogin, EUserInputType userInputTyp 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