From dca6a7821efbfd1e6c2987dfa1d2b9f72d1db1be Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Mon, 11 Jun 2012 22:10:55 -0500 Subject: users: LocalUser constructor should call SetClientIP() on itself This way we fire a future hook based on local IP information changing. --- src/users.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/users.cpp b/src/users.cpp index b05d24871..f858660e4 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -224,7 +224,8 @@ LocalUser::LocalUser(int myfd, irc::sockets::sockaddrs* client, irc::sockets::so { lastping = 0; eh.SetFd(myfd); - memcpy(&client_sa, client, sizeof(irc::sockets::sockaddrs)); + + SetClientIP(client); memcpy(&server_sa, servaddr, sizeof(irc::sockets::sockaddrs)); } -- cgit v1.2.3