/[svn]/ircd-hybrid/trunk/src/conf.c
ViewVC logotype

Diff of /ircd-hybrid/trunk/src/conf.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 8606 by michael, Sun Oct 21 18:11:04 2018 UTC revision 8607 by michael, Mon Oct 29 21:26:54 2018 UTC
# Line 404  conf_detach(struct Client *client_p, enu Line 404  conf_detach(struct Client *client_p, enu
404      free_dlink_node(node);      free_dlink_node(node);
405    
406      if (conf->type == CONF_CLIENT)      if (conf->type == CONF_CLIENT)
407        remove_from_cidr_check(&client_p->ip, conf->class);        class_ip_limit_remove(conf->class, (struct sockaddr *)&client_p->ip);
408    
409      if (--conf->class->ref_count == 0 && conf->class->active == 0)      if (--conf->class->ref_count == 0 && conf->class->active == 0)
410      {      {
# Line 430  conf_attach(struct Client *client_p, str Line 430  conf_attach(struct Client *client_p, str
430      return 1;      return 1;
431    
432    if (conf->type == CONF_CLIENT)    if (conf->type == CONF_CLIENT)
433      if (cidr_limit_reached(IsConfExemptLimits(conf),      if (class_ip_limit_add(conf->class, (struct sockaddr *)&client_p->ip, IsConfExemptLimits(conf)))
                            &client_p->ip, conf->class))  
434        return TOO_MANY;    /* Already at maximum allowed */        return TOO_MANY;    /* Already at maximum allowed */
435    
436    conf->class->ref_count++;    conf->class->ref_count++;

Legend:
Removed from v.8606  
changed lines
  Added in v.8607

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28