Committer : entrope
CVSROOT : /cvsroot/undernet-ircu
Module : ircu2.10
Branch tags: u2_10_12_branch
Commit time: 2007-03-17 14:15:10 UTC
Modified files:
Tag: u2_10_12_branch
ircd/s_conf.c ChangeLog
Log message:
Fix maxlinks=0 in find_conf_exact(), so /oper to such a class works.
---------------------- diff included ----------------------
Index: ircu2.10/ChangeLog
diff -u ircu2.10/ChangeLog:1.710.2.155 ircu2.10/ChangeLog:1.710.2.156
--- ircu2.10/ChangeLog:1.710.2.155 Fri Mar 16 20:48:48 2007
+++ ircu2.10/ChangeLog Sat Mar 17 07:15:00 2007
@@ -1,3 +1,8 @@
+2007-03-16 Michael Poole <[EMAIL PROTECTED]>
+
+ * ircd/s_conf.c (find_conf_exact): Treat maxlinks == 0 as being
+ unlimited here, to match attach_conf()'s behavior.
+
2007-03-16 Kevin L. Mitchell <[EMAIL PROTECTED]>
* ircd/s_conf.c (find_kill): check FEAT_DISABLE_GLINES prior to
Index: ircu2.10/ircd/s_conf.c
diff -u ircu2.10/ircd/s_conf.c:1.81.2.5 ircu2.10/ircd/s_conf.c:1.81.2.6
--- ircu2.10/ircd/s_conf.c:1.81.2.5 Fri Mar 16 20:48:49 2007
+++ ircu2.10/ircd/s_conf.c Sat Mar 17 07:15:00 2007
@@ -19,7 +19,7 @@
*/
/** @file
* @brief ircd configuration file driver
- * @version $Id: s_conf.c,v 1.81.2.5 2007/03/17 03:48:49 klmitch Exp $
+ * @version $Id: s_conf.c,v 1.81.2.6 2007/03/17 14:15:00 entrope Exp $
*/
#include "config.h"
@@ -656,6 +656,7 @@
else if (!ipmask_check(&cli_ip(cptr), &tmp->address.addr, tmp->addrbits))
continue;
if ((tmp->status & CONF_OPERATOR)
+ && (MaxLinks(tmp->conn_class) > 0)
&& (tmp->clients >= MaxLinks(tmp->conn_class)))
continue;
return tmp;
----------------------- End of diff -----------------------
_______________________________________________
Patches mailing list
[email protected]
http://undernet.sbg.org/mailman/listinfo/patches