1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-09 09:03:12 +02:00

Require set::who-limit to be 1 or higher.

Confusion reported by armyn in https://bugs.unrealircd.org/view.php?id=5717
This commit is contained in:
Bram Matthys
2020-06-26 07:23:12 +02:00
parent b23e64cb2e
commit faeb644b82
+6
View File
@@ -7975,6 +7975,12 @@ int _test_set(ConfigFile *conf, ConfigEntry *ce)
else if (!strcmp(cep->ce_varname, "who-limit")) {
CheckNull(cep);
CheckDuplicate(cep, who_limit, "who-limit");
if (!config_checkval(cep->ce_vardata,CFG_SIZE))
{
config_error("%s:%i: set::who-limit: value must be at least 1",
cep->ce_fileptr->cf_filename, cep->ce_varlinenum);
errors++;
}
}
else if (!strcmp(cep->ce_varname, "maxbans")) {
CheckNull(cep);