From 99e7c22e9d88f16a9faf5aab34b9d4dce3384acc Mon Sep 17 00:00:00 2001 From: Rudokhvist Date: Thu, 26 Sep 2024 16:35:25 +0300 Subject: [PATCH] add a failsafe --- FixBigInventories/FixBigInventories.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FixBigInventories/FixBigInventories.cs b/FixBigInventories/FixBigInventories.cs index 496a35b..7ddd04f 100644 --- a/FixBigInventories/FixBigInventories.cs +++ b/FixBigInventories/FixBigInventories.cs @@ -28,7 +28,7 @@ public Task OnLoaded() { } public async Task OnBotTradeOfferResults(Bot bot, IReadOnlyCollection tradeResults) { - if (EnabledBots.Contains(bot)) { + if (EnabledBots.Contains(bot) && bot.IsConnectedAndLoggedOn) { if (tradeResults.Any(static result => result is { Result: ParseTradeResult.EResult.Accepted, Confirmed: true })) { bool success = false;