From 8435c9157736eaa398e3e1f9f02938ea65931fe9 Mon Sep 17 00:00:00 2001 From: 13xforever Date: Wed, 6 Jul 2022 15:50:51 +0500 Subject: [PATCH] this explains why there's been no new reports lately --- CompatBot/Database/Providers/HwInfoProvider.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CompatBot/Database/Providers/HwInfoProvider.cs b/CompatBot/Database/Providers/HwInfoProvider.cs index b1526211..bdca564b 100644 --- a/CompatBot/Database/Providers/HwInfoProvider.cs +++ b/CompatBot/Database/Providers/HwInfoProvider.cs @@ -22,7 +22,9 @@ internal static class HwInfoProvider { var ignoreAuthor = msg.Author.IsWhitelisted(client, msg.Channel.Guild); byte counter = 0; - if (!ignoreAuthor && (!UserCache.TryGetValue(msg.Author.Id, out counter) || counter > 4)) + if (!ignoreAuthor + && UserCache.TryGetValue(msg.Author.Id, out counter) + && counter > 4) { Config.Log.Debug($"Ignoring HW report for user {msg.Author.Id} ({msg.Author.Username}#{msg.Author.Discriminator})"); return;