From 59dc6b0ec277b76996014ea7350b0bcafa5396b5 Mon Sep 17 00:00:00 2001 From: Robin Burchell Date: Sun, 1 Jul 2012 21:12:16 +0200 Subject: Revert "users: add SetClientIP function for irc::sockets::sockaddrs type." This reverts commit f0474272303ac9297f637ce956315518138bafff. --- src/users.cpp | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'src') diff --git a/src/users.cpp b/src/users.cpp index cca517332..9c3d645f7 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -977,22 +977,10 @@ irc::sockets::cidr_mask User::GetCIDRMask() return irc::sockets::cidr_mask(client_sa, range); } -bool User::SetClientIP(irc::sockets::sockaddrs *sa) -{ - memcpy(&client_sa, sa, sizeof(irc::sockets::sockaddrs)); - - return true; -} - bool User::SetClientIP(const char* sip) { - irc::sockets::sockaddrs sa; - this->cachedip = ""; - if (!irc::sockets::aptosa(sip, 0, sa)) - return false; - - return SetClientIP(&sa); + return irc::sockets::aptosa(sip, 0, client_sa); } static std::string wide_newline("\r\n"); -- cgit v1.2.3