[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Y:-line parsing change to allow class with 0 connects
On Sat 23-Aug-1997 (22:00), Helmut Springer wrote:
> for that I'd need a class with a client limit of '0', which is not
> possibile at the moment because '0' is parsed as 'unlimited'.
the attached patch should do it, any comments?
regards
delta
--
helmut springer Consulting: Unix, IP, Security, InfoServices
delta@xxxxxxxxxxxxxxxxxxxx Stuttgart University, FRG
http://home.pages.de/~delta/
phone : +49 711 685-2003 "Freedom's just another word for
FAX : +49 711 685-7096 nothing left to lose" Kris Kristofferson
--- ircd/s_conf.c.orig Sat Aug 30 15:41:40 1997
+++ ircd/s_conf.c Sat Aug 30 16:17:33 1997
@@ -263,8 +263,14 @@
if ((aconf->status & (CONF_LOCOP | CONF_OPERATOR | CONF_CLIENT |
CONF_RCLIENT)))
{
- if (aconf->clients >= ConfMaxLinks(aconf) &&
- ConfMaxLinks(aconf) > 0)
+ /*
+ * delta, Sat Aug 30 15:46:12 MES 1997
+ * make limit '0' literal '0' instead of 'unlimited'
+ * if (aconf->clients >= ConfMaxLinks(aconf) &&
+ * ConfMaxLinks(aconf) > 0)
+ */
+ if (aconf->clients >= ConfMaxLinks(aconf))
+ /* eoc, delta */
return -3; /* Use this for printing error message */
if (ConfConFreq(aconf) > 0) /* special limit per host */
{