summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-04-09 17:59:00 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-04-09 17:59:00 +0000
commiteedb276bcba2e6602de68d7a20c13b63721ad79d (patch)
tree75d19125a2d72728d666fb7e06f32501fd65303e /src
parentca7ac1c188c3ab3b70617ec6eea14afa86d43053 (diff)
Test tweak to make it sync faster
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6780 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_spanningtree/treesocket1.cpp7
-rw-r--r--src/modules/m_spanningtree/treesocket2.cpp1
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;
}
+