mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-05 07:57:59 +01:00
Disallow empty discord filters (#4298)
This commit is contained in:
parent
a55289196b
commit
d78729f343
@ -330,7 +330,7 @@ public class DiscordSettings implements IConf {
|
|||||||
}
|
}
|
||||||
|
|
||||||
final String filter = config.getString("chat.discord-filter", null);
|
final String filter = config.getString("chat.discord-filter", null);
|
||||||
if (filter != null) {
|
if (filter != null && !filter.trim().isEmpty()) {
|
||||||
try {
|
try {
|
||||||
discordFilter = Pattern.compile(filter);
|
discordFilter = Pattern.compile(filter);
|
||||||
} catch (PatternSyntaxException e) {
|
} catch (PatternSyntaxException e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user