From c8ef9b27407ec2ea0bb4f5f36e4434aea7a644e3 Mon Sep 17 00:00:00 2001 From: Bram Matthys Date: Sun, 29 May 2022 15:13:12 +0200 Subject: [PATCH] Fix set::restrict-commands::except not working. Reported by Rain. --- src/modules/restrict-commands.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/modules/restrict-commands.c b/src/modules/restrict-commands.c index 5f23333be..dc7f0bd9f 100644 --- a/src/modules/restrict-commands.c +++ b/src/modules/restrict-commands.c @@ -170,6 +170,7 @@ int rcmd_configtest(ConfigFile *cf, ConfigEntry *ce, int type, int *errs) if (!strcmp(cep2->name, "except")) { test_match_block(cf, cep2, &errors); + continue; } if (!cep2->value) @@ -269,6 +270,7 @@ int rcmd_configrun(ConfigFile *cf, ConfigEntry *ce, int type) if (!strcmp(cep2->name, "except")) { conf_match_block(cf, cep2, &rcmd->except); + continue; } if (!cep2->value)