this explains why there's been no new reports lately

This commit is contained in:
13xforever 2022-07-06 15:50:51 +05:00
parent 42a7f3ee23
commit 8435c91577

View File

@ -22,7 +22,9 @@ internal static class HwInfoProvider
{ {
var ignoreAuthor = msg.Author.IsWhitelisted(client, msg.Channel.Guild); var ignoreAuthor = msg.Author.IsWhitelisted(client, msg.Channel.Guild);
byte counter = 0; 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})"); Config.Log.Debug($"Ignoring HW report for user {msg.Author.Id} ({msg.Author.Username}#{msg.Author.Discriminator})");
return; return;