mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-09 11:13:13 +02:00
+- Made connfreq unable to less than 10
This commit is contained in:
@@ -245,4 +245,4 @@
|
||||
- Minor OpenBSD support cleanup
|
||||
- bsd.c, channel.c, s_svs.c, s_unreal.c, s_kline.c, and s_extra.c now use ANSI
|
||||
standards for naming function params
|
||||
|
||||
- Made connfreq unable to less than 10
|
||||
+2
-2
@@ -861,9 +861,9 @@ int _conf_class(ConfigFile *conf, ConfigEntry *ce)
|
||||
if (!strcmp(cep->ce_varname, "connfreq"))
|
||||
{
|
||||
class->connfreq = atol(cep->ce_vardata);
|
||||
if (class->connfreq < 0)
|
||||
if (class->connfreq < 10)
|
||||
{
|
||||
config_error("%s:%i: class::connfreq with illegal value (<0))",
|
||||
config_error("%s:%i: class::connfreq with illegal value (<10))",
|
||||
cep->ce_fileptr->cf_filename, cep->ce_varlinenum);
|
||||
}
|
||||
} else
|
||||
|
||||
Reference in New Issue
Block a user