diff options
-rw-r--r-- | src/modules/m_cgiirc.cpp | 4 |
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 |