From 75bd6e87d3d57558f663e5e5c801aed2715d2ede Mon Sep 17 00:00:00 2001 From: Bram Matthys Date: Fri, 15 May 2026 09:23:19 +0200 Subject: [PATCH] Fix set::antimixedutf8::except not working Reported by Le_Coyote in https://bugs.unrealircd.org/view.php?id=6625 --- src/modules/antimixedutf8.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/modules/antimixedutf8.c b/src/modules/antimixedutf8.c index ada3a9e52..6987732ba 100644 --- a/src/modules/antimixedutf8.c +++ b/src/modules/antimixedutf8.c @@ -179,6 +179,10 @@ int antimixedutf8_config_test(ConfigFile *cf, ConfigEntry *ce, int type, int *er for (cep = ce->items; cep; cep = cep->next) { + if (!strcmp(cep->name, "except")) + { + test_match_block(cf, cep, &errors); + } else if (!cep->value) { config_error("%s:%i: set::antimixedutf8::%s with no value", @@ -205,10 +209,6 @@ int antimixedutf8_config_test(ConfigFile *cf, ConfigEntry *ce, int type, int *er if (!strcmp(cep->name, "ban-time")) { } else - if (!strcmp(cep->name, "except")) - { - test_match_block(cf, cep, &errors); - } else { config_error("%s:%i: unknown directive set::antimixedutf8::%s", cep->file->filename, cep->line_number, cep->name);