summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-12-16 10:49:13 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-12-16 10:49:13 +0000
commit30b15910f119b51d9efc00dd7141baa7cc265734 (patch)
tree2b8a6f95310bdb4e52406031c2d732dbd142d55d
parent26d5bbeb12848e286dee0a8605e34ad5637d82d0 (diff)
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
-rw-r--r--src/modules/m_spanningtree.cpp8
1 files 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();
}
}