From ae42901c540b413a5064dbec9a566627b3a2967b Mon Sep 17 00:00:00 2001 From: Valery Yatsko Date: Wed, 2 Apr 2008 15:27:59 +0400 Subject: [PATCH] m_testline.c fixed --- modules/m_testline.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/m_testline.c b/modules/m_testline.c index cfcf3cc..d6448aa 100644 --- a/modules/m_testline.c +++ b/modules/m_testline.c @@ -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 */ if((type = parse_netmask(host, (struct sockaddr *)&ip, &host_mask)) != HM_HOST) { -#ifdef IPV6 - if(type == HM_IPV6) - aconf = find_dline((struct sockaddr *)&ip, AF_INET6); - else -#endif - aconf = find_dline((struct sockaddr *)&ip, AF_INET); +#ifdef IPV6 + if(type == HM_IPV6) + aconf = find_dline((struct sockaddr *)&ip); + else +#endif + aconf = find_dline((struct sockaddr *)&ip); if(aconf && aconf->status & CONF_DLINE) {