Disallow empty discord filters (#4298)

This commit is contained in:
Josh Roy 2021-07-01 18:59:35 -04:00 committed by GitHub
parent a55289196b
commit d78729f343
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {