Fixed? word and invite filters

This commit is contained in:
Master Kwoth 2017-06-20 04:25:23 +02:00
parent d5f4dcdf20
commit f26c7a32ec

View File

@ -67,7 +67,7 @@ namespace NadekoBot.Services.Permissions
public async Task<bool> TryBlockEarly(IGuild guild, IUserMessage msg)
=> !(msg.Author is IGuildUser gu) //it's never filtered outside of guilds, and never block administrators
? false
: gu.GuildPermissions.Administrator && (await FilterInvites(guild, msg) || await FilterWords(guild, msg));
: !gu.GuildPermissions.Administrator && (await FilterInvites(guild, msg) || await FilterWords(guild, msg));
public async Task<bool> FilterWords(IGuild guild, IUserMessage usrMsg)
{