Merge pull request #886 from 13xforever/vnext

Fix an embarrassing oversight
This commit is contained in:
clienthax 2022-07-06 23:46:50 +01:00 committed by GitHub
commit f1eda478db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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);