From 343f12b9b2d4e519b09877f76a00f6a0714509f2 Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 24 Mar 2008 15:13:17 +0000 Subject: Add stuff so that modules can hook users by altering a pointer in the User class. Note that ssl modules still bind by port, but the idea of doing this change is so we can remove that logic next git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9187 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/socket.cpp | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'src/socket.cpp') diff --git a/src/socket.cpp b/src/socket.cpp index e045df1f9..2089fffbd 100644 --- a/src/socket.cpp +++ b/src/socket.cpp @@ -116,17 +116,6 @@ void ListenSocket::HandleEvent(EventType, int) ServerInstance->SE->NonBlocking(incomingSockfd); - if (ServerInstance->Config->GetIOHook(in_port)) - { - try - { - ServerInstance->Config->GetIOHook(in_port)->OnRawSocketAccept(incomingSockfd, buf, in_port); - } - catch (CoreException& modexcept) - { - ServerInstance->Logs->Log("SOCKET", DEBUG,"%s threw an exception: %s", modexcept.GetSource(), modexcept.GetReason()); - } - } ServerInstance->stats->statsAccept++; ServerInstance->Users->AddClient(ServerInstance, incomingSockfd, in_port, false, this->family, client); } -- cgit v1.2.3