summaryrefslogtreecommitdiff
path: root/src/inspircd.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-16 01:14:02 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-16 01:14:02 +0000
commit0b6295a0aa384ba11522abf7b417593fb28c407c (patch)
tree2e88e54618710d8f55d87ec1185364445b197337 /src/inspircd.cpp
parent0b675b72d5ca8a963734ca838e8ae81230046a66 (diff)
Changed I/O reading stuff for modules to be much faster (and exclusive :()
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2500 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/inspircd.cpp')
-rw-r--r--src/inspircd.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index 83f5948fb..b564ec396 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -75,6 +75,7 @@ extern int MODCOUNT;
int openSockfd[MAXSOCKS];
sockaddr_in client,server;
socklen_t length;
+extern Module* IOHookModule;
extern InspSocket* socket_ref[65535];
@@ -1184,7 +1185,10 @@ int InspIRCd::Run()
*/
if (incomingSockfd >= 0)
{
- FOREACH_MOD OnRawSocketAccept(incomingSockfd, target, in_port);
+ if (IOHookModule)
+ {
+ IOHookModule->OnRawSocketAccept(incomingSockfd, target, in_port);
+ }
stats->statsAccept++;
AddClient(incomingSockfd, target, in_port, false, target);
log(DEBUG,"Adding client on port %lu fd=%lu",(unsigned long)in_port,(unsigned long)incomingSockfd);