diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-18 20:48:54 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-18 20:48:54 +0000 |
commit | ca0889d458ab768f32f399c0afe5f4e36dcd07d9 (patch) | |
tree | ccb4caf7a361129a6dd5ecd19581f1bf108895f9 /src/users.cpp | |
parent | 6b5767fdd2f372ef5648f438dc68942f39658698 (diff) |
Added IOHookModule stuff to allow for different modules to hook different ports
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2564 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/users.cpp')
-rw-r--r-- | src/users.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/users.cpp b/src/users.cpp index 18ec1c318..6388b456b 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -49,7 +49,6 @@ extern userrec* fd_ref_table[65536]; extern ServerConfig *Config; extern user_hash clientlist; extern whowas_hash whowas; -extern Module* IOHookModule; std::vector<userrec*> local_users; std::vector<userrec*> all_opers; @@ -375,9 +374,9 @@ void kill_link(userrec *user,const char* r) if (user->fd > -1) { - if (IOHookModule) + if (Config->GetIOHook(user->port)) { - IOHookModule->OnRawSocketClose(user->fd); + Config->GetIOHook(user->port)->OnRawSocketClose(user->fd); } ServerInstance->SE->DelFd(user->fd); user->CloseSocket(); @@ -438,9 +437,9 @@ void kill_link_silent(userrec *user,const char* r) if (user->fd > -1) { - if (IOHookModule) + if (Config->GetIOHook(user->port)) { - IOHookModule->OnRawSocketClose(user->fd); + Config->GetIOHook(user->port)->OnRawSocketClose(user->fd); } ServerInstance->SE->DelFd(user->fd); user->CloseSocket(); |