From 30b15910f119b51d9efc00dd7141baa7cc265734 Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 16 Dec 2006 10:49:13 +0000 Subject: Add some comments to explain whats going off in one of the TreeSocket constructors git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6011 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp index c84ec7961..f1384255c 100644 --- a/src/modules/m_spanningtree.cpp +++ b/src/modules/m_spanningtree.cpp @@ -711,8 +711,9 @@ class TreeSocket : public InspSocket { this->LinkState = WAIT_AUTH_1; - Instance->Log(DEBUG, "HOOK = %08x", Hook); - + /* If we have a transport module hooked to the parent, hook the same module to this + * socket, and set a timer waiting for handshake before we send CAPAB etc. + */ if (Hook) { InspSocketHookRequest(this, (Module*)Utils->Creator, Hook).Send(); @@ -720,6 +721,9 @@ class TreeSocket : public InspSocket } else { + /* Otherwise, theres no lower layer transport in plain TCP/IP, + * so just send the capabilities right now. + */ this->SendCapabilities(); } } -- cgit v1.2.3