diff options
| author | 2012-06-11 22:12:23 -0500 | |
|---|---|---|
| committer | 2012-06-12 22:49:29 -0700 | |
| commit | 5fd31ec5a6ba6021763b36d8d17d4665900623ab (patch) | |
| tree | 89eca1da78b7f334dd40bc5abd170819de973263 /src/users.cpp | |
| parent | users: LocalUser constructor should call SetClientIP() on itself (diff) | |
users: introduce OnSetClientIP hook.
This hook is called whenever a client's IP is modified.
Diffstat (limited to 'src/users.cpp')
| -rw-r--r-- | src/users.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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; } |
