573 |
|
* If they are K-lined, return the K-line. Otherwise, return the |
574 |
|
* auth {} block. -A1kmm |
575 |
|
*/ |
576 |
< |
if (killcnf && (killcnf->until == 0 || killcnf->until > CurrentTime)) |
576 |
> |
if (killcnf) |
577 |
|
return killcnf; |
578 |
|
|
579 |
|
return authcnf; |
589 |
|
find_dline_conf(struct irc_ssaddr *addr, int aftype) |
590 |
|
{ |
591 |
|
struct MaskItem *eline; |
592 |
– |
struct MaskItem *dline; |
592 |
|
|
593 |
|
eline = find_conf_by_address(NULL, addr, CONF_EXEMPT, aftype, NULL, NULL, 1); |
594 |
|
if (eline) |
595 |
|
return eline; |
596 |
|
|
597 |
< |
dline = find_conf_by_address(NULL, addr, CONF_DLINE, aftype, NULL, NULL, 1); |
599 |
< |
if (dline && (dline->until == 0 || dline->until > CurrentTime)) |
600 |
< |
return dline; |
601 |
< |
|
602 |
< |
return NULL; |
597 |
> |
return find_conf_by_address(NULL, addr, CONF_DLINE, aftype, NULL, NULL, 1); |
598 |
|
} |
599 |
|
|
600 |
|
/* void add_conf_by_address(int, struct MaskItem *aconf) |