| 2077 |
|
|
| 2078 |
|
assert(client_p != NULL); |
| 2079 |
|
|
| 2080 |
< |
aconf = find_kline_conf(client_p->host, client_p->username, |
| 2081 |
< |
&client_p->localClient->ip, |
| 2082 |
< |
client_p->localClient->aftype); |
| 2080 |
> |
aconf = find_conf_by_address(client_p->host, &client_p->localClient->ip, |
| 2081 |
> |
CONF_KLINE, client_p->localClient->aftype, |
| 2082 |
> |
client_p->username, NULL, 1); |
| 2083 |
|
if (aconf == NULL) |
| 2084 |
|
aconf = find_regexp_kline(uhi); |
| 2085 |
|
|
| 2086 |
< |
if (aconf && (aconf->status & CONF_KLINE)) |
| 2087 |
< |
return aconf; |
| 2088 |
< |
|
| 2089 |
< |
return NULL; |
| 2086 |
> |
return aconf; |
| 2087 |
|
} |
| 2088 |
|
|
| 2089 |
|
struct AccessItem * |
| 2093 |
|
|
| 2094 |
|
assert(client_p != NULL); |
| 2095 |
|
|
| 2096 |
< |
aconf = find_gline_conf(client_p->host, client_p->username, |
| 2097 |
< |
&client_p->localClient->ip, |
| 2098 |
< |
client_p->localClient->aftype); |
| 2099 |
< |
|
| 2103 |
< |
if (aconf && (aconf->status & CONF_GLINE)) |
| 2104 |
< |
return aconf; |
| 2105 |
< |
|
| 2106 |
< |
return NULL; |
| 2096 |
> |
aconf = find_conf_by_address(client_p->host, &client_p->localClient->ip, |
| 2097 |
> |
CONF_GLINE, client_p->localClient->aftype, |
| 2098 |
> |
client_p->username, NULL, 1); |
| 2099 |
> |
return aconf; |
| 2100 |
|
} |
| 2101 |
|
|
| 2102 |
|
/* add_temp_line() |