From ca0889d458ab768f32f399c0afe5f4e36dcd07d9 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 18 Dec 2005 20:48:54 +0000 Subject: 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 --- src/users.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/users.cpp') 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 local_users; std::vector 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(); -- cgit v1.3.1-10-gc9f91