mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-20 01:46:25 +00:00
banwords ignore case
This commit is contained in:
1 parent
adb2889be9
commit
38118c2aa8
1 file changed
+1
-1
@@ -111,7 +111,7 @@ public static class SpamManager
|
||||
}
|
||||
}
|
||||
|
||||
bool banned = BanWords.Any(text.Contains);
|
||||
bool banned = BanWords.Any(x => text.Contains(x, StringComparison.OrdinalIgnoreCase));
|
||||
|
||||
if (!banned) return false;
|
||||
|
||||
|
||||
Reference in new issue
Block a user