summaryrefslogtreecommitdiff
path: root/src/modules/m_ident.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-02-07 20:02:51 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-02-07 20:02:51 +0000
commitbfe3ce79fb1a5b36c3b8b6995baec0fd92c2dd98 (patch)
tree4249ac0bd1919fa59a8a907a76d06454bcaa3efa /src/modules/m_ident.cpp
parent0b460e6f324aa72cdbfb4143918971d582f62a77 (diff)
Remember: C++ only works if you type the right method names and not ones that dont exist.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6542 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_ident.cpp')
-rw-r--r--src/modules/m_ident.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_ident.cpp b/src/modules/m_ident.cpp
index 6c7d36974..338535ad8 100644
--- a/src/modules/m_ident.cpp
+++ b/src/modules/m_ident.cpp
@@ -143,7 +143,7 @@ class RFC1413 : public InspSocket
uslen = sizeof(sockaddr_in);
themlen = sizeof(sockaddr_in);
#ifdef IPV6
- if (this->u->GetAddressFamily() == AF_INET6)
+ if (this->u->GetProtocolFamily() == AF_INET6)
{
themlen = sizeof(sockaddr_in6);
uslen = sizeof(sockaddr_in6);
@@ -163,7 +163,7 @@ class RFC1413 : public InspSocket
{
// send the request in the following format: theirsocket,oursocket
#ifdef IPV6
- if (this->u->GetAddressFamily() == AF_INET6)
+ if (this->u->GetProtocolFamily() == AF_INET6)
snprintf(ident_request,127,"%d,%d\r\n",ntohs(((sockaddr_in6*)sock_them)->sin6_port),ntohs(((sockaddr_in6*)sock_us)->sin6_port));
else
snprintf(ident_request,127,"%d,%d\r\n",ntohs(((sockaddr_in*)sock_them)->sin_port),ntohs(((sockaddr_in*)sock_us)->sin_port));