From 433044e8fc6ae601c0c5b8439494afee9f2e6be6 Mon Sep 17 00:00:00 2001 From: Robin Burchell Date: Sun, 1 Jul 2012 21:12:06 +0200 Subject: Revert "users: LocalUser constructor should call SetClientIP() on itself" This reverts commit dca6a7821efbfd1e6c2987dfa1d2b9f72d1db1be. --- src/users.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/users.cpp b/src/users.cpp index 0580bf54f..cca517332 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -224,8 +224,7 @@ LocalUser::LocalUser(int myfd, irc::sockets::sockaddrs* client, irc::sockets::so { lastping = 0; eh.SetFd(myfd); - - SetClientIP(client); + memcpy(&client_sa, client, sizeof(irc::sockets::sockaddrs)); memcpy(&server_sa, servaddr, sizeof(irc::sockets::sockaddrs)); } -- cgit v1.2.3