summaryrefslogtreecommitdiff
path: root/src/users.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp4
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)