1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-06-12 17:14:46 +02:00

Fix set::antimixedutf8::except not working

Reported by Le_Coyote in https://bugs.unrealircd.org/view.php?id=6625
This commit is contained in:
Bram Matthys
2026-05-15 09:23:19 +02:00
parent 9ba54b7eb3
commit 75bd6e87d3
+4 -4
View File
@@ -179,6 +179,10 @@ int antimixedutf8_config_test(ConfigFile *cf, ConfigEntry *ce, int type, int *er
for (cep = ce->items; cep; cep = cep->next) for (cep = ce->items; cep; cep = cep->next)
{ {
if (!strcmp(cep->name, "except"))
{
test_match_block(cf, cep, &errors);
} else
if (!cep->value) if (!cep->value)
{ {
config_error("%s:%i: set::antimixedutf8::%s with no 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")) if (!strcmp(cep->name, "ban-time"))
{ {
} else } else
if (!strcmp(cep->name, "except"))
{
test_match_block(cf, cep, &errors);
} else
{ {
config_error("%s:%i: unknown directive set::antimixedutf8::%s", config_error("%s:%i: unknown directive set::antimixedutf8::%s",
cep->file->filename, cep->line_number, cep->name); cep->file->filename, cep->line_number, cep->name);