m_testline.c fixed
This commit is contained in:
parent
cd3b9a5e7b
commit
ae42901c54
|
@ -120,12 +120,12 @@ mo_testline(struct Client *client_p, struct Client *source_p, int parc, const ch
|
||||||
/* parses as an IP, check for a dline */
|
/* parses as an IP, check for a dline */
|
||||||
if((type = parse_netmask(host, (struct sockaddr *)&ip, &host_mask)) != HM_HOST)
|
if((type = parse_netmask(host, (struct sockaddr *)&ip, &host_mask)) != HM_HOST)
|
||||||
{
|
{
|
||||||
#ifdef IPV6
|
#ifdef IPV6
|
||||||
if(type == HM_IPV6)
|
if(type == HM_IPV6)
|
||||||
aconf = find_dline((struct sockaddr *)&ip, AF_INET6);
|
aconf = find_dline((struct sockaddr *)&ip);
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
aconf = find_dline((struct sockaddr *)&ip, AF_INET);
|
aconf = find_dline((struct sockaddr *)&ip);
|
||||||
|
|
||||||
if(aconf && aconf->status & CONF_DLINE)
|
if(aconf && aconf->status & CONF_DLINE)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue