From 5fd31ec5a6ba6021763b36d8d17d4665900623ab Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Mon, 11 Jun 2012 22:12:23 -0500 Subject: users: introduce OnSetClientIP hook. This hook is called whenever a client's IP is modified. --- src/users.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/users.cpp') 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; } -- cgit v1.2.3