From d12b1c4897cc90ba390d876c281cacbbfd91cbc1 Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 28 May 2007 18:52:55 +0000 Subject: ipv6 ifdef tidyup by djGrrr, thanks :) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7176 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_ident.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/modules') 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; -- cgit v1.2.3