diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/modules.cpp | 1 | ||||
-rw-r--r-- | src/users.cpp | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/modules.cpp b/src/modules.cpp index ccd78a8f0..8306ff6af 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -176,6 +176,7 @@ ModResult Module::OnNumeric(User*, unsigned int, const std::string&) { return MO void Module::OnHookIO(StreamSocket*, ListenSocket*) { } ModResult Module::OnAcceptConnection(int, ListenSocket*, irc::sockets::sockaddrs*, irc::sockets::sockaddrs*) { return MOD_RES_PASSTHRU; } void Module::OnSendWhoLine(User*, const std::vector<std::string>&, User*, std::string&) { } +void Module::OnSetClientIP(User *) { } ModuleManager::ModuleManager() : ModCount(0) { diff --git a/src/users.cpp b/src/users.cpp index f858660e4..73eb84137 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -1013,6 +1013,8 @@ bool User::SetClientIP(irc::sockets::sockaddrs *sa) { memcpy(&client_sa, sa, sizeof(irc::sockets::sockaddrs)); + FOREACH_MOD(I_OnSetClientIP, OnSetClientIP(this)); + return true; } |