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/m_spanningtree/main.cpp | 6 +----- src/modules/m_spanningtree/utils.cpp | 6 +----- 2 files changed, 2 insertions(+), 10 deletions(-) (limited to 'src/modules/m_spanningtree') diff --git a/src/modules/m_spanningtree/main.cpp b/src/modules/m_spanningtree/main.cpp index 0fddd6e0e..a134d95e1 100644 --- a/src/modules/m_spanningtree/main.cpp +++ b/src/modules/m_spanningtree/main.cpp @@ -510,16 +510,12 @@ void ModuleSpanningTree::ConnectServer(Link* x) ipvalid = false; } else +#endif { in_addr n; if (inet_aton(x->IPAddr.c_str(),&n) < 1) ipvalid = false; } -#else - in_addr n; - if (inet_aton(x->IPAddr.c_str(),&n) < 1) - ipvalid = false; -#endif /* Do we already have an IP? If so, no need to resolve it. */ if (ipvalid) diff --git a/src/modules/m_spanningtree/utils.cpp b/src/modules/m_spanningtree/utils.cpp index 854e38e76..6c4001503 100644 --- a/src/modules/m_spanningtree/utils.cpp +++ b/src/modules/m_spanningtree/utils.cpp @@ -428,16 +428,12 @@ void SpanningTreeUtilities::RefreshIPCache() ipvalid = false; } else +#endif { in_addr n; if (inet_aton(L->IPAddr.c_str(),&n) < 1) ipvalid = false; } -#else - in_addr n; - if (inet_aton(L->IPAddr.c_str(),&n) < 1) - ipvalid = false; -#endif if (!ipvalid) { try -- cgit v1.2.3