diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-05-30 17:37:13 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-05-30 17:37:13 +0000 |
commit | 2779810ff0d1b66f0fca1a62d6164d70f5c86d06 (patch) | |
tree | 101caa8c28e64e6580d6674eb93e8d349673df21 /src/modules/extra | |
parent | c9235e50f471e5071c0601dde62bb741d9b6f05c (diff) |
Apply ipv6 #ifdef tidyup patch from djGrrr, thanks :)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7190 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/extra')
-rw-r--r-- | src/modules/extra/m_pgsql.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
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) { |