summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-04 10:39:42 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-04 10:39:42 +0000
commita361a0bbc980a44e775c868b34d6c01f545a8515 (patch)
tree4d79f593aa3e86e5e7b7d3b6f31268a5dcfb6ded /src/modules
parent58478434810b5b7a2bdcde1cdf852e1c76907d6b (diff)
IPV6 compile fixes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4696 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_cgiirc.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_cgiirc.cpp b/src/modules/m_cgiirc.cpp
index dea13d114..3a1bccaf7 100644
--- a/src/modules/m_cgiirc.cpp
+++ b/src/modules/m_cgiirc.cpp
@@ -245,7 +245,7 @@ public:
strlcpy(user->dhost, user->password, 64);
#ifdef IPV6
- if (insp_aton(user->password, (insp_inaddr*)&((sockaddr_in*)&user->ip)->sin6_addr))
+ if (insp_aton(user->password, (insp_inaddr*)&((sockaddr_in6*)&user->ip)->sin6_addr))
#else
if (insp_aton(user->password, (insp_inaddr*)&((sockaddr_in*)&user->ip)->sin_addr))
#endif
@@ -311,7 +311,7 @@ public:
user->Extend("cgiirc_realhost", new std::string(user->host));
user->Extend("cgiirc_realip", new std::string(user->GetIPString()));
#ifdef IPV6
- insp_aton(newip, (insp_inaddr*)&((sockaddr_in*)&user->ip)->sin6_addr);
+ insp_aton(newip, (insp_inaddr*)&((sockaddr_in6*)&user->ip)->sin6_addr);
#else
insp_aton(newip, (insp_inaddr*)&((sockaddr_in*)&user->ip)->sin_addr);
#endif