diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-12-16 10:49:13 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-12-16 10:49:13 +0000 |
commit | 30b15910f119b51d9efc00dd7141baa7cc265734 (patch) | |
tree | 2b8a6f95310bdb4e52406031c2d732dbd142d55d /src | |
parent | 26d5bbeb12848e286dee0a8605e34ad5637d82d0 (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
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_spanningtree.cpp | 8 |
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(); } } |