mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-03 06:28:54 +00:00
Fix blocked-words
This commit is contained in:
1 parent
4b29191623
commit
eaf172b683
1 file changed
+4
-6
@@ -52,12 +52,10 @@ public class FilterHandler implements Listener {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (String replacement : config.getStringList("filters.blocked-words")) {
|
for (String replacement : config.getStringList("filters.blocked-words")) {
|
||||||
for (String word : filters.getStringList(replacement)) {
|
if (carbonChat.getModConfig().getBoolean("filters.case-sensitive")) {
|
||||||
if (carbonChat.getModConfig().getBoolean("filters.case-sensitive")) {
|
blockedWords.add(Pattern.compile(replacement));
|
||||||
blockedWords.add(Pattern.compile(word));
|
} else {
|
||||||
} else {
|
blockedWords.add(Pattern.compile(replacement, Pattern.CASE_INSENSITIVE));
|
||||||
blockedWords.add(Pattern.compile(word, Pattern.CASE_INSENSITIVE));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user