Please drink responsibly

This commit is contained in:
JustArchi
2017-01-07 03:30:48 +01:00
parent 432cc54521
commit 9d905c8f07
2 changed files with 10 additions and 10 deletions

View File

@@ -161,7 +161,7 @@ namespace ArchiSteamFarm {
return botConfig; return botConfig;
} }
Program.ArchiLogger.LogGenericWarning(string.Join(Strings.WarningTooManyGamesToPlay, ArchiHandler.MaxGamesPlayedConcurrently, nameof(botConfig.GamesPlayedWhileIdle))); Program.ArchiLogger.LogGenericWarning(string.Format(Strings.WarningTooManyGamesToPlay, ArchiHandler.MaxGamesPlayedConcurrently, nameof(botConfig.GamesPlayedWhileIdle)));
HashSet<uint> validGames = new HashSet<uint>(botConfig.GamesPlayedWhileIdle.Take(ArchiHandler.MaxGamesPlayedConcurrently)); HashSet<uint> validGames = new HashSet<uint>(botConfig.GamesPlayedWhileIdle.Take(ArchiHandler.MaxGamesPlayedConcurrently));
botConfig.GamesPlayedWhileIdle.IntersectWith(validGames); botConfig.GamesPlayedWhileIdle.IntersectWith(validGames);

View File

@@ -75,28 +75,28 @@ namespace ArchiSteamFarm {
Logging.OnUserInputStart(); Logging.OnUserInputStart();
switch (userInputType) { switch (userInputType) {
case ASF.EUserInputType.DeviceID: case ASF.EUserInputType.DeviceID:
Console.Write(string.Join(Strings.UserInputDeviceID, botName)); Console.Write(Strings.UserInputDeviceID, botName);
break; break;
case ASF.EUserInputType.Login: case ASF.EUserInputType.Login:
Console.Write(string.Join(Strings.UserInputSteamLogin, botName)); Console.Write(Strings.UserInputSteamLogin, botName);
break; break;
case ASF.EUserInputType.Password: case ASF.EUserInputType.Password:
Console.Write(string.Join(Strings.UserInputSteamPassword, botName)); Console.Write(Strings.UserInputSteamPassword, botName);
break; break;
case ASF.EUserInputType.SteamGuard: case ASF.EUserInputType.SteamGuard:
Console.Write(string.Join(Strings.UserInputSteamGuard, botName)); Console.Write(Strings.UserInputSteamGuard, botName);
break; break;
case ASF.EUserInputType.SteamParentalPIN: case ASF.EUserInputType.SteamParentalPIN:
Console.Write(string.Join(Strings.UserInputSteamParentalPIN, botName)); Console.Write(Strings.UserInputSteamParentalPIN, botName);
break; break;
case ASF.EUserInputType.TwoFactorAuthentication: case ASF.EUserInputType.TwoFactorAuthentication:
Console.Write(string.Join(Strings.UserInputSteam2FA, botName)); Console.Write(Strings.UserInputSteam2FA, botName);
break; break;
case ASF.EUserInputType.WCFHostname: case ASF.EUserInputType.WCFHostname:
Console.Write(string.Join(Strings.UserInputWCFHost, botName)); Console.Write(Strings.UserInputWCFHost, botName);
break; break;
default: default:
Console.Write(string.Join(Strings.UserInputUnknown, botName, userInputType)); Console.Write(Strings.UserInputUnknown, botName, userInputType);
break; break;
} }
@@ -295,7 +295,7 @@ namespace ArchiSteamFarm {
string response = WCF.SendCommand(arg); string response = WCF.SendCommand(arg);
ArchiLogger.LogGenericInfo(string.Join(Strings.WCFResponseReceived, response)); ArchiLogger.LogGenericInfo(string.Format(Strings.WCFResponseReceived, response));
break; break;
} }
} }