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:
@@ -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"))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user