From 2260ed48ab1242f25de03c37726f1f8d45ef2994 Mon Sep 17 00:00:00 2001 From: JustArchi Date: Thu, 4 Apr 2019 00:07:41 +0200 Subject: [PATCH] Misc --- ArchiSteamFarm/Bot.cs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/ArchiSteamFarm/Bot.cs b/ArchiSteamFarm/Bot.cs index 1363e3d89..542bb95d2 100755 --- a/ArchiSteamFarm/Bot.cs +++ b/ArchiSteamFarm/Bot.cs @@ -2646,6 +2646,16 @@ namespace ArchiSteamFarm { foreach ((ArchiHandler.UserNotificationsCallback.EUserNotification notification, uint count) in callback.Notifications) { switch (notification) { + case ArchiHandler.UserNotificationsCallback.EUserNotification.Gifts: + bool newGifts = count > GiftsCount; + GiftsCount = count; + + if (newGifts && BotConfig.AcceptGifts) { + ArchiLogger.LogGenericTrace(nameof(ArchiHandler.UserNotificationsCallback.EUserNotification.Gifts)); + Utilities.InBackground(Actions.AcceptDigitalGiftCards); + } + + break; case ArchiHandler.UserNotificationsCallback.EUserNotification.Items: bool newItems = count > ItemsCount; ItemsCount = count; @@ -2669,16 +2679,6 @@ namespace ArchiSteamFarm { Utilities.InBackground(Trading.OnNewTrade); } - break; - case ArchiHandler.UserNotificationsCallback.EUserNotification.Gifts: - bool newGifts = count > GiftsCount; - GiftsCount = count; - - if (newGifts && BotConfig.AcceptGifts) { - ArchiLogger.LogGenericTrace(nameof(ArchiHandler.UserNotificationsCallback.EUserNotification.Gifts)); - Utilities.InBackground(Actions.AcceptDigitalGiftCards); - } - break; } }