diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-18 20:48:54 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-18 20:48:54 +0000 |
commit | ca0889d458ab768f32f399c0afe5f4e36dcd07d9 (patch) | |
tree | ccb4caf7a361129a6dd5ecd19581f1bf108895f9 /src/inspircd.cpp | |
parent | 6b5767fdd2f372ef5648f438dc68942f39658698 (diff) |
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
Diffstat (limited to 'src/inspircd.cpp')
-rw-r--r-- | src/inspircd.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 4055f2a38..c370c7f84 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -74,7 +74,6 @@ extern int MODCOUNT; int openSockfd[MAXSOCKS]; sockaddr_in client,server; socklen_t length; -extern Module* IOHookModule; extern InspSocket* socket_ref[65535]; @@ -528,9 +527,9 @@ int InspIRCd::Run() */ if (incomingSockfd >= 0) { - if (IOHookModule) + if (Config->GetIOHook(in_port)) { - IOHookModule->OnRawSocketAccept(incomingSockfd, target, in_port); + Config->GetIOHook(in_port)->OnRawSocketAccept(incomingSockfd, target, in_port); } stats->statsAccept++; AddClient(incomingSockfd, target, in_port, false, target); |