1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-02 13:13:14 +02:00

Fix set::broadcast-channel-messages configuration item not working.

Reported by FwdInTime in https://bugs.unrealircd.org/view.php?id=5367
This commit is contained in:
Bram Matthys
2019-08-25 18:52:39 +02:00
parent e0b941739c
commit 8d2ac9c50e
+3 -3
View File
@@ -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);