Misc style fixes

This commit is contained in:
JustArchi
2016-01-10 19:31:21 +01:00
parent da3537eba2
commit 13722ca8f8

View File

@@ -440,15 +440,15 @@ namespace ArchiSteamFarm {
}
internal static string ResponseStatus(string botName) {
Bot bot;
if (string.IsNullOrEmpty(botName)) {
return null;
}
Bot bot;
if (!Bots.TryGetValue(botName, out bot)) {
return "Couldn't find any bot named " + botName + "!"; ;
return "Couldn't find any bot named " + botName + "!";
}
if (bot.CardsFarmer.CurrentGamesFarming.Count > 0) {
return "Bot " + bot.BotName + " is currently farming appIDs: " + string.Join(", ", bot.CardsFarmer.CurrentGamesFarming) + " and has a total of " + bot.CardsFarmer.GamesToFarm.Count + " games left to farm.";
} else {
@@ -458,9 +458,9 @@ namespace ArchiSteamFarm {
}
internal static string ResponseStatusAll() {
StringBuilder result = new StringBuilder();
foreach (var curbot in Bots) {
result.Append(ResponseStatus(curbot.Key)+Environment.NewLine);
StringBuilder result = new StringBuilder(Environment.NewLine);
foreach (var bot in Bots) {
result.Append(ResponseStatus(bot.Key) + Environment.NewLine);
}
result.Append("Currently " + Bots.Count + " bots are running.");
return result.ToString();