mirror of
https://github.com/RPCS3/discord-bot.git
synced 2025-02-06 10:27:47 +00:00
do not kick mods with white name
This commit is contained in:
parent
8435c91577
commit
f525335ae1
@ -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…
x
Reference in New Issue
Block a user