summaryrefslogtreecommitdiff
path: root/src/inspsocket.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-12-09 18:49:36 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-12-09 18:49:36 +0000
commit768171fef96d3e0b74b5c750e7887fc20b48331c (patch)
tree449ee5c880d1261fbba98893c7860910249a8adb /src/inspsocket.cpp
parentdfa831752c950f16872f3c485f94d408866a2e15 (diff)
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
Diffstat (limited to 'src/inspsocket.cpp')
-rw-r--r--src/inspsocket.cpp11
1 files changed, 11 insertions, 0 deletions
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: