diff options
author | Attila Molnar <attilamolnar@hush.com> | 2016-08-10 15:57:04 +0200 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2016-08-10 15:57:04 +0200 |
commit | 7770cd985405c7630e9149fc08c314ec824a9c75 (patch) | |
tree | 717c8ed61ec462196d206471899fc47e25c05c59 /src/modules/m_spanningtree/treesocket1.cpp | |
parent | 4a12fc9d4bfb77fc2fc05c1052c66294e3774649 (diff) | |
parent | a86e320ac19fbbd6034d0447f048beb8b4a0ad1d (diff) |
Merge branch 'master+websocket'
Diffstat (limited to 'src/modules/m_spanningtree/treesocket1.cpp')
-rw-r--r-- | src/modules/m_spanningtree/treesocket1.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/modules/m_spanningtree/treesocket1.cpp b/src/modules/m_spanningtree/treesocket1.cpp index 2198d6208..e1642a086 100644 --- a/src/modules/m_spanningtree/treesocket1.cpp +++ b/src/modules/m_spanningtree/treesocket1.cpp @@ -60,8 +60,13 @@ TreeSocket::TreeSocket(int newfd, ListenSocket* via, irc::sockets::sockaddrs* cl capab = new CapabData; capab->capab_phase = 0; - if (via->iohookprov) - via->iohookprov->OnAccept(this, client, server); + for (ListenSocket::IOHookProvList::iterator i = via->iohookprovs.begin(); i != via->iohookprovs.end(); ++i) + { + ListenSocket::IOHookProvRef& iohookprovref = *i; + if (iohookprovref) + iohookprovref->OnAccept(this, client, server); + } + SendCapabilities(1); Utils->timeoutlist[this] = std::pair<std::string, int>(linkID, 30); |