diff options
author | William Pitcock <nenolod@dereferenced.org> | 2012-06-11 22:10:55 -0500 |
---|---|---|
committer | Sir Poggles <sir.pogsalot@gmail.com> | 2012-06-12 22:49:29 -0700 |
commit | dca6a7821efbfd1e6c2987dfa1d2b9f72d1db1be (patch) | |
tree | 72acebad4bebbb3d12e725bc88dcf0f47f879ad1 /src | |
parent | f0474272303ac9297f637ce956315518138bafff (diff) |
users: LocalUser constructor should call SetClientIP() on itself
This way we fire a future hook based on local IP information changing.
Diffstat (limited to 'src')
-rw-r--r-- | src/users.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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)); } |