mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-16 08:25:28 +00:00
Found more use cases
This commit is contained in:
@@ -281,15 +281,13 @@ namespace ArchiSteamFarm {
|
||||
return;
|
||||
}
|
||||
|
||||
Bot bot;
|
||||
if (!Bot.Bots.TryGetValue(botName, out bot)) {
|
||||
if (!Bot.Bots.TryGetValue(botName, out Bot bot)) {
|
||||
return;
|
||||
}
|
||||
|
||||
DateTime lastWriteTime = File.GetLastWriteTime(e.FullPath);
|
||||
|
||||
DateTime savedLastWriteTime;
|
||||
if (LastWriteTimes.TryGetValue(bot, out savedLastWriteTime)) {
|
||||
if (LastWriteTimes.TryGetValue(bot, out DateTime savedLastWriteTime)) {
|
||||
if (savedLastWriteTime >= lastWriteTime) {
|
||||
return;
|
||||
}
|
||||
@@ -347,8 +345,7 @@ namespace ArchiSteamFarm {
|
||||
return;
|
||||
}
|
||||
|
||||
Bot bot;
|
||||
if (Bot.Bots.TryGetValue(botName, out bot)) {
|
||||
if (Bot.Bots.TryGetValue(botName, out Bot bot)) {
|
||||
bot.OnNewConfigLoaded(new BotConfigEventArgs()).Forget();
|
||||
}
|
||||
}
|
||||
@@ -370,8 +367,7 @@ namespace ArchiSteamFarm {
|
||||
return;
|
||||
}
|
||||
|
||||
Bot bot;
|
||||
if (Bot.Bots.TryGetValue(oldBotName, out bot)) {
|
||||
if (Bot.Bots.TryGetValue(oldBotName, out Bot bot)) {
|
||||
bot.OnNewConfigLoaded(new BotConfigEventArgs()).Forget();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user