summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRobin Burchell <robin+git@viroteck.net>2012-07-01 21:12:06 +0200
committerRobin Burchell <robin+git@viroteck.net>2012-07-01 21:12:06 +0200
commit433044e8fc6ae601c0c5b8439494afee9f2e6be6 (patch)
tree795290327b2d4897627cc80a951ffdde18552958 /src
parent2c3745edb3013d4ffce393337566a8a58924740b (diff)
Revert "users: LocalUser constructor should call SetClientIP() on itself"
This reverts commit dca6a7821efbfd1e6c2987dfa1d2b9f72d1db1be.
Diffstat (limited to 'src')
-rw-r--r--src/users.cpp3
1 files changed, 1 insertions, 2 deletions
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));
}