From 8d2ac9c50e99da2f590e1a5bb170a6ac4cdecb04 Mon Sep 17 00:00:00 2001 From: Bram Matthys Date: Sun, 25 Aug 2019 18:52:39 +0200 Subject: [PATCH] Fix set::broadcast-channel-messages configuration item not working. Reported by FwdInTime in https://bugs.unrealircd.org/view.php?id=5367 --- src/conf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/conf.c b/src/conf.c index cbbaad6d6..0c4c5d4f2 100644 --- a/src/conf.c +++ b/src/conf.c @@ -8969,9 +8969,9 @@ int _test_set(ConfigFile *conf, ConfigEntry *ce) else if (!strcmp(cep->ce_varname, "broadcast-channel-messages")) { CheckNull(cep); - if (strcmp(cep->ce_varname, "auto") && - strcmp(cep->ce_varname, "always") && - strcmp(cep->ce_varname, "never")) + if (strcmp(cep->ce_vardata, "auto") && + strcmp(cep->ce_vardata, "always") && + strcmp(cep->ce_vardata, "never")) { config_error("%s:%i: set::broadcast-channel-messages: value should be 'auto', 'always' or 'never'", cep->ce_fileptr->cf_filename, cep->ce_varlinenum);