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

Add value check for blacklist config, well, fix it i mean.

And fix some compiler warning (remove a useless check).
[skip ci]
This commit is contained in:
Bram Matthys
2023-11-26 16:36:11 +01:00
parent 94bf58add9
commit 0a7f1adc8b
2 changed files with 2 additions and 3 deletions
+2
View File
@@ -606,6 +606,7 @@ int blacklist_set_config_test(ConfigFile *cf, ConfigEntry *ce, int type, int *er
config_error("%s:%i: set::blacklist::recheck-time-first with no value",
cep->file->filename, cep->line_number);
errors++;
continue;
}
if (!strcmp(cep->value, "never"))
{
@@ -632,6 +633,7 @@ int blacklist_set_config_test(ConfigFile *cf, ConfigEntry *ce, int type, int *er
config_error("%s:%i: set::blacklist::recheck-time with no value",
cep->file->filename, cep->line_number);
errors++;
continue;
}
if (strcmp(cep->value, "never"))
{