From 768171fef96d3e0b74b5c750e7887fc20b48331c Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 9 Dec 2006 18:49:36 +0000 Subject: Add OnRawSocketConnect, we've not had it till now because we've not needed it :) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5887 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/inspsocket.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/inspsocket.cpp') diff --git a/src/inspsocket.cpp b/src/inspsocket.cpp index 9d2745a2d..23d89a71f 100644 --- a/src/inspsocket.cpp +++ b/src/inspsocket.cpp @@ -483,6 +483,17 @@ bool InspSocket::Poll() if (!this->Instance->SE->AddFd(this)) return false; } + if (this->IsIOHooked) + { + try + { + Instance->Config->GetIOHook(this)->OnRawSocketConnect(this->fd); + } + catch (ModuleException& modexcept) + { + Instance->Log(DEBUG,"Module exception cought: %s",modexcept.GetReason()); + } + } return this->OnConnected(); break; case I_LISTENING: -- cgit v1.3.1-10-gc9f91