/[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 1636 by michael, Sun Nov 4 17:09:47 2012 UTC revision 1637 by michael, Sun Nov 4 17:23:27 2012 UTC
# Line 1185  find_exact_name_conf(enum maskitem_type Line 1185  find_exact_name_conf(enum maskitem_type
1185    
1186        if (!irccmp(conf->name, name))        if (!irccmp(conf->name, name))
1187        {        {
         if (conf->class->ref_count >= conf->class->max_total)  
           continue;  
1188          if (!who)          if (!who)
1189            return conf;            return conf;
1190          if (EmptyString(conf->user) || EmptyString(conf->host))          if (EmptyString(conf->user) || EmptyString(conf->host))
# Line 1197  find_exact_name_conf(enum maskitem_type Line 1195  find_exact_name_conf(enum maskitem_type
1195            {            {
1196              case HM_HOST:              case HM_HOST:
1197                if (match(conf->host, who->host) || match(conf->host, who->sockhost))                if (match(conf->host, who->host) || match(conf->host, who->sockhost))
1198                  return conf;                  if (!conf->class->max_total || conf->class->ref_count < conf->class->max_total)
1199                      return conf;
1200                break;                break;
1201              case HM_IPV4:              case HM_IPV4:
1202                if (who->localClient->aftype == AF_INET)                if (who->localClient->aftype == AF_INET)
1203                  if (match_ipv4(&who->localClient->ip, &conf->addr, conf->bits))                  if (match_ipv4(&who->localClient->ip, &conf->addr, conf->bits))
1204                    return conf;                    if (!conf->class->max_total || conf->class->ref_count < conf->class->max_total)
1205                        return conf;
1206                break;                break;
1207  #ifdef IPV6  #ifdef IPV6
1208              case HM_IPV6:              case HM_IPV6:
1209                if (who->localClient->aftype == AF_INET6)                if (who->localClient->aftype == AF_INET6)
1210                  if (match_ipv6(&who->localClient->ip, &conf->addr, conf->bits))                  if (match_ipv6(&who->localClient->ip, &conf->addr, conf->bits))
1211                    return conf;                    if (!conf->class->max_total || conf->class->ref_count < conf->class->max_total)
1212                        return conf;
1213                break;                break;
1214  #endif  #endif
1215              default:              default:

Legend:
Removed from v.1636  
changed lines
  Added in v.1637

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