| 45 |
|
#include "s_gline.h" |
| 46 |
|
#include "parse.h" |
| 47 |
|
#include "modules.h" |
| 48 |
– |
#include "irc_getnameinfo.h" |
| 48 |
|
|
| 49 |
|
|
| 50 |
|
static void mo_dline(struct Client *, struct Client *, int, char *[]); |
| 171 |
|
return; |
| 172 |
|
} |
| 173 |
|
|
| 174 |
< |
irc_getnameinfo((struct sockaddr *)&target_p->localClient->ip, |
| 175 |
< |
target_p->localClient->ip.ss_len, hostip, |
| 176 |
< |
sizeof(hostip), NULL, 0, NI_NUMERICHOST); |
| 178 |
< |
|
| 174 |
> |
getnameinfo((struct sockaddr *)&target_p->localClient->ip, |
| 175 |
> |
target_p->localClient->ip.ss_len, hostip, |
| 176 |
> |
sizeof(hostip), NULL, 0, NI_NUMERICHOST); |
| 177 |
|
dlhost = hostip; |
| 178 |
|
t = parse_netmask(dlhost, NULL, &bits); |
| 179 |
|
assert(t == HM_IPV4 || t == HM_IPV6); |