From 78c14ffcc5429f4855e2f3a6c822a1d37f9f591a Mon Sep 17 00:00:00 2001 From: w00t Date: Sun, 7 Sep 2008 20:07:50 +0000 Subject: Merge the second interface for socket hooking into one, so it's all done by Add/Del/GetIOHook now. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10457 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/usermanager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/usermanager.cpp') diff --git a/src/usermanager.cpp b/src/usermanager.cpp index 35d455c45..e5fdb7adc 100644 --- a/src/usermanager.cpp +++ b/src/usermanager.cpp @@ -49,11 +49,11 @@ void UserManager::AddUser(InspIRCd* Instance, int socket, int port, bool iscache /* Give each of the modules an attempt to hook the user for I/O */ FOREACH_MOD_I(Instance, I_OnHookUserIO, OnHookUserIO(New, targetip)); - if (New->io) + if (New->GetIOHook()) { try { - New->io->OnRawSocketAccept(socket, ipaddr, port); + New->GetIOHook()->OnRawSocketAccept(socket, ipaddr, port); } catch (CoreException& modexcept) { -- cgit v1.2.3