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/userprocess.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/userprocess.cpp') diff --git a/src/userprocess.cpp b/src/userprocess.cpp index a73eb7d25..31cb6b68e 100644 --- a/src/userprocess.cpp +++ b/src/userprocess.cpp @@ -77,17 +77,15 @@ char data[65536]; extern user_hash clientlist; extern chan_hash chanlist; -extern Module* IOHookModule; - void ProcessUser(userrec* cu) { int result = EAGAIN; log(DEBUG,"Processing user with fd %d",cu->fd); - if (IOHookModule) + if (Config->GetIOHook(cu->port)) { int MOD_RESULT = 0; int result2 = 0; - IOHookModule->OnRawSocketRead(cu->fd,data,65535,result2); + Config->GetIOHook(cu->port)->OnRawSocketRead(cu->fd,data,65535,result2); if (!MOD_RESULT) { result = cu->ReadData(data, 65535); -- cgit v1.3.1-10-gc9f91