banwords ignore case

This commit is contained in:
Gurge44 committed 2026-03-12 10:02:09 +01:00
1 parent adb2889be9
commit 38118c2aa8
1 file changed
+1 -1
+1 -1
View File
@@ -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;