From 2779810ff0d1b66f0fca1a62d6164d70f5c86d06 Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 30 May 2007 17:37:13 +0000 Subject: Apply ipv6 #ifdef tidyup patch from djGrrr, thanks :) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7190 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/extra/m_pgsql.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/modules/extra') diff --git a/src/modules/extra/m_pgsql.cpp b/src/modules/extra/m_pgsql.cpp index 9ec369859..57c049f30 100644 --- a/src/modules/extra/m_pgsql.cpp +++ b/src/modules/extra/m_pgsql.cpp @@ -817,14 +817,11 @@ class ModulePgSQL : public Module ipvalid = inet_pton(AF_INET6, host.host.c_str(), &blargle); } else +#endif { in_addr blargle; ipvalid = inet_aton(host.host.c_str(), &blargle); } -#else - in_addr blargle; - ipvalid = inet_aton(host.host.c_str(), &blargle); -#endif if(ipvalid > 0) { -- cgit v1.2.3