diff options
author | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-09-01 15:06:47 +0000 |
---|---|---|
committer | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-09-01 15:06:47 +0000 |
commit | 819147178db00008a215670992d0f532dd57f9e5 (patch) | |
tree | adb4695096f5107cf4b81d03a98d27db28f8d007 /src/usermanager.cpp | |
parent | 5c93325b53342095f7f7ba0339e4f3ea52229dfe (diff) |
Strip SUPPORT_IP6LINKS #define
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11572 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/usermanager.cpp')
-rw-r--r-- | src/usermanager.cpp | 30 |
1 files changed, 0 insertions, 30 deletions
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)); |