mirror of
https://github.com/RPCS3/discord-bot.git
synced 2024-11-23 10:19:39 +00:00
Merge pull request #886 from 13xforever/vnext
Fix an embarrassing oversight
This commit is contained in:
commit
f1eda478db
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user