diff options
-rw-r--r-- | src/modules/m_spanningtree/treesocket1.cpp | 7 | ||||
-rw-r--r-- | src/modules/m_spanningtree/treesocket2.cpp | 1 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/modules/m_spanningtree/treesocket1.cpp b/src/modules/m_spanningtree/treesocket1.cpp index 39a32e6f4..0451b5dd4 100644 --- a/src/modules/m_spanningtree/treesocket1.cpp +++ b/src/modules/m_spanningtree/treesocket1.cpp @@ -73,9 +73,12 @@ TreeSocket::TreeSocket(SpanningTreeUtilities* Util, InspIRCd* SI, int newfd, cha * socket, and set a timer waiting for handshake before we send CAPAB etc. */ if (Hook) + { InspSocketHookRequest(this, (Module*)Utils->Creator, Hook).Send(); - - Instance->Timers->AddTimer(new HandshakeTimer(Instance, this, &(Utils->LinkBlocks[0]), this->Utils)); + Instance->Timers->AddTimer(new HandshakeTimer(Instance, this, &(Utils->LinkBlocks[0]), this->Utils)); + } + else + this->SendCapabilities(); } ServerState TreeSocket::GetLinkState() diff --git a/src/modules/m_spanningtree/treesocket2.cpp b/src/modules/m_spanningtree/treesocket2.cpp index 3ff981544..56e1a6c4f 100644 --- a/src/modules/m_spanningtree/treesocket2.cpp +++ b/src/modules/m_spanningtree/treesocket2.cpp @@ -1523,3 +1523,4 @@ int TreeSocket::OnIncomingConnection(int newsock, char* ip) s = s; /* Whinge whinge whinge, thats all GCC ever does. */ return true; } + |