summaryrefslogtreecommitdiff
path: root/src/userprocess.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/userprocess.cpp')
-rw-r--r--src/userprocess.cpp6
1 files changed, 2 insertions, 4 deletions
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);