577 |
|
{ |
578 |
|
struct AccessItem *iconf, *kconf; |
579 |
|
|
580 |
< |
/* Find the best I-line... If none, return NULL -A1kmm */ |
580 |
> |
/* Find the best auth{} block... If none, return NULL -A1kmm */ |
581 |
|
if ((iconf = find_conf_by_address(host, ip, CONF_CLIENT, aftype, user, |
582 |
|
password, 1)) == NULL) |
583 |
|
return NULL; |
584 |
|
|
585 |
< |
/* If they are exempt from K-lines, return the best I-line. -A1kmm */ |
585 |
> |
/* If they are exempt from K-lines, return the best auth{} block. -A1kmm */ |
586 |
|
if (IsConfExemptKline(iconf)) |
587 |
|
return iconf; |
588 |
|
|
589 |
|
/* Find the best K-line... -A1kmm */ |
590 |
|
kconf = find_conf_by_address(host, ip, CONF_KLINE, aftype, user, NULL, 1); |
591 |
|
|
592 |
< |
/* If they are K-lined, return the K-line. Otherwise, return the |
593 |
< |
* I-line. -A1kmm */ |
592 |
> |
/* |
593 |
> |
* If they are K-lined, return the K-line. Otherwise, return the |
594 |
> |
* auth{} block. -A1kmm |
595 |
> |
*/ |
596 |
|
if (kconf != NULL) |
597 |
|
return kconf; |
598 |
|
|