From 3b595d39a50e38283768bc6ec8aeb9e73071224f Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Mon, 28 Aug 2017 15:13:25 +0100 Subject: Get rid of irc::sockets::satoap(). This function is being misused in all but one scenario. It isn't really worth keeping IMO. --- src/users.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/users.cpp') diff --git a/src/users.cpp b/src/users.cpp index dd0d54286..7d72692d9 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -681,10 +681,9 @@ int LocalUser::GetServerPort() const std::string& User::GetIPString() { - int port; if (cachedip.empty()) { - irc::sockets::satoap(client_sa, cachedip, port); + cachedip = client_sa.addr(); /* IP addresses starting with a : on irc are a Bad Thing (tm) */ if (cachedip[0] == ':') cachedip.insert(cachedip.begin(),1,'0'); -- cgit v1.2.3