From: brain Date: Mon, 28 May 2007 18:52:55 +0000 (+0000) Subject: ipv6 ifdef tidyup by djGrrr, thanks :) X-Git-Tag: v2.0.23~5242 X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=d12b1c4897cc90ba390d876c281cacbbfd91cbc1;p=user%2Fhenk%2Fcode%2Finspircd.git ipv6 ifdef tidyup by djGrrr, thanks :) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7176 e03df62e-2008-0410-955e-edbf42e46eb7 --- 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;