Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
SylveonDeko committed Sep 4, 2022
2 parents 6388e14 + a3c4471 commit ec3c3a1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Mewdeko/Modules/Permissions/Services/FilterService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ public async Task<bool> FilterBannedWords(IGuild? guild, IUserMessage? msg)
var bannedwords = Blacklist.Where(x => x.GuildId == guild.Id);
foreach (var i in bannedwords.Select(x => x.Word))
{
if (msg.Content.ToLower().Contains(i))
if (msg.Content.ToLower().Contains(i.ToLower()))
try
{
await msg.DeleteAsync().ConfigureAwait(false);
Expand Down Expand Up @@ -291,7 +291,7 @@ public async Task<bool> FilterWords(IGuild? guild, IUserMessage? usrMsg)
if (filteredChannelWords.Count != 0 || filteredServerWords.Count != 0)
{
foreach (var word in filteredChannelWords)
if (usrMsg.Content.Contains(word))
if (usrMsg.Content.ToLower().Contains(word))
{
try
{
Expand Down Expand Up @@ -401,4 +401,4 @@ public async Task<bool> FilterLinks(IGuild? guild, IUserMessage? usrMsg)

return false;
}
}
}

0 comments on commit ec3c3a1

Please sign in to comment.