Fix maxlinks=0 in find_conf_exact(), so /oper to such a class works.
authorMichael Poole <mdpoole@troilus.org>
Sat, 17 Mar 2007 14:15:00 +0000 (14:15 +0000)
committerMichael Poole <mdpoole@troilus.org>
Sat, 17 Mar 2007 14:15:00 +0000 (14:15 +0000)
git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/branches/u2_10_12_branch@1775 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

ChangeLog
ircd/s_conf.c

index 4fdaff8176979587f598fc3d835134c70f936fde..4087c6e0bbbc3309e6d95f59fdd4bfab4a9964c3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-03-16  Michael Poole <mdpoole@troilus.org>
+
+       * 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  <klmitch@mit.edu>
 
        * ircd/s_conf.c (find_kill): check FEAT_DISABLE_GLINES prior to
index 539a114a210c60d3ad248be125a507cced2a0743..2cc9385e2c8751c67f1ae2c2bed85ab15d456b13 100644 (file)
@@ -656,6 +656,7 @@ struct ConfItem* find_conf_exact(const char* name, struct Client *cptr, int stat
     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;