summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-05 22:27:36 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-05 22:27:36 +0000
commit012556497285a914f5756bf893c7392c2b2a3b7a (patch)
treedafc4b1e8dae63c2ed07c766671094f25e490832
parentd8e6877c24ea474b098b112b91c0e94586650ece (diff)
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
-rw-r--r--src/modules/m_cloaking.cpp2
1 files changed, 1 insertions, 1 deletions
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;