summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-05-28 18:52:55 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-05-28 18:52:55 +0000
commitd12b1c4897cc90ba390d876c281cacbbfd91cbc1 (patch)
treec4d7eff63a1491f7b3cd6b53094163e7a7485ea5 /src/modules
parent63c0316722df40d5d25f0ed6765cbfec3de13ebf (diff)
ipv6 ifdef tidyup by djGrrr, thanks :)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7176 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_ident.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/modules/m_ident.cpp b/src/modules/m_ident.cpp
index 3c1106b4d..00d7524c7 100644
--- a/src/modules/m_ident.cpp
+++ b/src/modules/m_ident.cpp
@@ -147,13 +147,9 @@ class RFC1413 : public InspSocket
{
themlen = sizeof(sockaddr_in6);
uslen = sizeof(sockaddr_in6);
- success = ((getsockname(this->u->GetFd(),sock_us,&uslen) || getpeername(this->u->GetFd(), sock_them, &themlen)));
}
- else
- success = ((getsockname(this->u->GetFd(),sock_us,&uslen) || getpeername(this->u->GetFd(), sock_them, &themlen)));
-#else
- success = ((getsockname(this->u->GetFd(),sock_us,&uslen) || getpeername(this->u->GetFd(), sock_them, &themlen)));
#endif
+ success = ((getsockname(this->u->GetFd(),sock_us,&uslen) || getpeername(this->u->GetFd(), sock_them, &themlen)));
if (success)
{
delete[] sock_us;