mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-11-14 14:45:27 +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);
|
||||
if (filter != null) {
|
||||
if (filter != null && !filter.trim().isEmpty()) {
|
||||
try {
|
||||
discordFilter = Pattern.compile(filter);
|
||||
} catch (PatternSyntaxException e) {
|
||||
|
Loading…
Reference in New Issue
Block a user