From 4f04eba177c7f1265da879ba6be3699e4181b0f8 Mon Sep 17 00:00:00 2001 From: Draycia Date: Thu, 3 Dec 2020 17:27:03 -0800 Subject: [PATCH] Fix docs for blocked patterns setting --- .../java/net/draycia/carbon/api/config/ModerationSettings.java | 2 +- CarbonChat-Common/src/main/resources/moderation.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CarbonChat-API/src/main/java/net/draycia/carbon/api/config/ModerationSettings.java b/CarbonChat-API/src/main/java/net/draycia/carbon/api/config/ModerationSettings.java index 6d4a932b..2c9165d8 100644 --- a/CarbonChat-API/src/main/java/net/draycia/carbon/api/config/ModerationSettings.java +++ b/CarbonChat-API/src/main/java/net/draycia/carbon/api/config/ModerationSettings.java @@ -139,7 +139,7 @@ public final class ModerationSettings { @Setting @Comment("Anything in blocked-words will prevent the message from being sent at all.\n" + - "Set to blocked-words: [] if you want to disable the blocked words feature.") + "Set to blocked-patterns: [] if you want to disable the blocked words feature.") private List blockedPatterns = Collections.singletonList(Pattern.compile("pineapple doesn't belong on pizza")); public boolean enabled() { diff --git a/CarbonChat-Common/src/main/resources/moderation.yml b/CarbonChat-Common/src/main/resources/moderation.yml index 6fb1e1d5..d5c7d27e 100644 --- a/CarbonChat-Common/src/main/resources/moderation.yml +++ b/CarbonChat-Common/src/main/resources/moderation.yml @@ -16,7 +16,7 @@ clear-chat: filters: # Anything in blocked-words will prevent the message from being sent at all. - # Set to blocked-words: [] if you want to disable the blocked words feature. + # Set to blocked-patterns: [] if you want to disable the blocked words feature. blocked-patterns: - pineapple doesn't belong on pizza # If filtering / replacements is enabled