From e0e044278e62d9b3790a636a154dd02b114698e0 Mon Sep 17 00:00:00 2001 From: Kwoth Date: Thu, 17 Feb 2022 15:23:10 +0100 Subject: [PATCH] Fixed an issue with streams not showing online or offline status --- .../Searches/_Common/StreamNotifications/NotifChecker.cs | 1 + src/NadekoBot/Modules/Xp/XpService.cs | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/NadekoBot/Modules/Searches/_Common/StreamNotifications/NotifChecker.cs b/src/NadekoBot/Modules/Searches/_Common/StreamNotifications/NotifChecker.cs index 289a7ec13..03de2151a 100644 --- a/src/NadekoBot/Modules/Searches/_Common/StreamNotifications/NotifChecker.cs +++ b/src/NadekoBot/Modules/Searches/_Common/StreamNotifications/NotifChecker.cs @@ -101,6 +101,7 @@ public class NotifChecker || !typeDict.TryGetValue(key.Name, out var oldData) || oldData is null) { + CacheAddData(key, newData, true); continue; } diff --git a/src/NadekoBot/Modules/Xp/XpService.cs b/src/NadekoBot/Modules/Xp/XpService.cs index e6692c4e3..cd1f77896 100644 --- a/src/NadekoBot/Modules/Xp/XpService.cs +++ b/src/NadekoBot/Modules/Xp/XpService.cs @@ -36,9 +36,7 @@ public class XpService : INService, IReadyExecutor private readonly IEmbedBuilderService _eb; private readonly ConcurrentDictionary> _excludedRoles; - private readonly ConcurrentDictionary> _excludedChannels; - private readonly ConcurrentHashSet _excludedServers; private readonly ConcurrentQueue _addMessageXp = new();