mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-06-28 17:36:38 +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:
@@ -1380,9 +1380,6 @@ ModDataInfo *persistent_var_generic(ModuleInfo *modinfo, const char *varshortnam
|
||||
ModDataInfo *m;
|
||||
const char *fullname = mod_var_name(modinfo, varshortname);
|
||||
|
||||
if (!modinfo)
|
||||
abort();
|
||||
|
||||
m = findmoddata_byname(fullname, MODDATATYPE_LOCAL_VARIABLE);
|
||||
if (m)
|
||||
{
|
||||
|
||||
@@ -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