diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-04-09 17:59:00 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-04-09 17:59:00 +0000 |
commit | eedb276bcba2e6602de68d7a20c13b63721ad79d (patch) | |
tree | 75d19125a2d72728d666fb7e06f32501fd65303e | |
parent | ca7ac1c188c3ab3b70617ec6eea14afa86d43053 (diff) |
Test tweak to make it sync faster
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6780 e03df62e-2008-0410-955e-edbf42e46eb7
-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; } + |