do not kick mods with white name

This commit is contained in:
13xforever 2022-07-07 03:40:02 +05:00
parent 8435c91577
commit f525335ae1

View File

@ -123,13 +123,13 @@ internal static class ContentFilter
var suppressActions = (FilterAction)0;
#if !DEBUG
if (message.Author.IsWhitelisted(client, message.Channel.Guild))
{
if (message.Content.StartsWith('>'))
suppressActions = FilterAction.IssueWarning | FilterAction.RemoveContent;
else
return true;
}
if (message.Author.IsWhitelisted(client, message.Channel.Guild))
{
if (message.Content.StartsWith('>'))
suppressActions = FilterAction.IssueWarning | FilterAction.RemoveContent | FilterAction.Kick;
else
return true;
}
#endif
var content = new StringBuilder(message.Content);