From 343f12b9b2d4e519b09877f76a00f6a0714509f2 Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 24 Mar 2008 15:13:17 +0000 Subject: Add stuff so that modules can hook users by altering a pointer in the User class. Note that ssl modules still bind by port, but the idea of doing this change is so we can remove that logic next git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9187 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/cull_list.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/cull_list.cpp') diff --git a/src/cull_list.cpp b/src/cull_list.cpp index 224591b6f..f7f163298 100644 --- a/src/cull_list.cpp +++ b/src/cull_list.cpp @@ -80,11 +80,11 @@ int CullList::Apply() if (IS_LOCAL(u)) { - if (ServerInstance->Config->GetIOHook(u->GetPort())) + if (u->io) { try { - ServerInstance->Config->GetIOHook(u->GetPort())->OnRawSocketClose(u->GetFd()); + u->io->OnRawSocketClose(u->GetFd()); } catch (CoreException& modexcept) { -- cgit v1.2.3