mirror of
https://github.com/RPCS3/discord-bot.git
synced 2024-11-23 10:19:39 +00:00
this explains why there's been no new reports lately
This commit is contained in:
parent
42a7f3ee23
commit
8435c91577
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user