diff options
author | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-10-24 20:04:05 +0000 |
---|---|---|
committer | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-10-24 20:04:05 +0000 |
commit | 9fad3ecb9215a0034bf407f192926b04cb5efaed (patch) | |
tree | bc3699d29c02e2d3c7a9825fd9ddfb385d301ba1 /src/users.cpp | |
parent | 6b2ea833674bb3bfedb0f2e2af06efa25655e5f5 (diff) |
Create irc::sockets::cidr_mask
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11968 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/users.cpp')
-rw-r--r-- | src/users.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/users.cpp b/src/users.cpp index 424484b8c..cf2d11a0a 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -965,7 +965,7 @@ const char* User::GetIPString() return cachedip.c_str(); } -irc::string User::GetCIDRMask() +irc::sockets::cidr_mask User::GetCIDRMask() { int range = 0; switch (client_sa.sa.sa_family) @@ -977,7 +977,7 @@ irc::string User::GetCIDRMask() range = ServerInstance->Config->c_ipv4_range; break; } - return assign(irc::sockets::mask(client_sa, range)); + return irc::sockets::cidr_mask(client_sa, range); } bool User::SetClientIP(const char* sip) |