From 819147178db00008a215670992d0f532dd57f9e5 Mon Sep 17 00:00:00 2001 From: danieldg Date: Tue, 1 Sep 2009 15:06:47 +0000 Subject: Strip SUPPORT_IP6LINKS #define git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11572 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/usermanager.cpp | 30 ------------------------------ 1 file changed, 30 deletions(-) (limited to 'src/usermanager.cpp') diff --git a/src/usermanager.cpp b/src/usermanager.cpp index da8061fba..0ebf1f6c7 100644 --- a/src/usermanager.cpp +++ b/src/usermanager.cpp @@ -222,17 +222,11 @@ void UserManager::AddLocalClone(User *user) clonemap::iterator x; switch (user->GetProtocolFamily()) { -#ifdef SUPPORT_IP6LINKS case AF_INET6: - { range = ServerInstance->Config->c_ipv6_range; - } break; -#endif case AF_INET: - { range = ServerInstance->Config->c_ipv4_range; - } break; } @@ -249,17 +243,11 @@ void UserManager::AddGlobalClone(User *user) clonemap::iterator x; switch (user->GetProtocolFamily()) { -#ifdef SUPPORT_IP6LINKS case AF_INET6: - { range = ServerInstance->Config->c_ipv6_range; - } break; -#endif case AF_INET: - { range = ServerInstance->Config->c_ipv4_range; - } break; } @@ -275,17 +263,11 @@ void UserManager::RemoveCloneCounts(User *user) int range = 32; switch (user->GetProtocolFamily()) { -#ifdef SUPPORT_IP6LINKS case AF_INET6: - { range = ServerInstance->Config->c_ipv6_range; - } break; -#endif case AF_INET: - { range = ServerInstance->Config->c_ipv4_range; - } break; } @@ -315,17 +297,11 @@ unsigned long UserManager::GlobalCloneCount(User *user) int range = 32; switch (user->GetProtocolFamily()) { -#ifdef SUPPORT_IP6LINKS case AF_INET6: - { range = ServerInstance->Config->c_ipv6_range; - } break; -#endif case AF_INET: - { range = ServerInstance->Config->c_ipv4_range; - } break; } clonemap::iterator x = global_clones.find(user->GetCIDRMask(range)); @@ -340,17 +316,11 @@ unsigned long UserManager::LocalCloneCount(User *user) int range = 32; switch (user->GetProtocolFamily()) { -#ifdef SUPPORT_IP6LINKS case AF_INET6: - { range = ServerInstance->Config->c_ipv6_range; - } break; -#endif case AF_INET: - { range = ServerInstance->Config->c_ipv4_range; - } break; } clonemap::iterator x = local_clones.find(user->GetCIDRMask(range)); -- cgit v1.2.3