From 012556497285a914f5756bf893c7392c2b2a3b7a Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 5 Aug 2006 22:27:36 +0000 Subject: Use insp_aton so we can correctly cloak ipv6 git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4725 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_cloaking.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules') diff --git a/src/modules/m_cloaking.cpp b/src/modules/m_cloaking.cpp index ab13708ea..b3aa8c0fa 100644 --- a/src/modules/m_cloaking.cpp +++ b/src/modules/m_cloaking.cpp @@ -326,7 +326,7 @@ class CloakUser : public ModeHandler * vhost. */ - if ((!inet_aton(dest->host,&testaddr)) && (hostcloak.length() < 64)) + if ((insp_aton(dest->host,&testaddr) < 1) && (hostcloak.length() < 64)) { // if they have a hostname, make something appropriate b = hostcloak; -- cgit v1.2.3