From eedb276bcba2e6602de68d7a20c13b63721ad79d Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 9 Apr 2007 17:59:00 +0000 Subject: Test tweak to make it sync faster git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6780 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree/treesocket1.cpp | 7 +++++-- src/modules/m_spanningtree/treesocket2.cpp | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'src') 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; } + -- cgit v1.2.3