diff options
| author | 2016-08-08 15:10:43 +0200 | |
|---|---|---|
| committer | 2016-08-08 15:10:43 +0200 | |
| commit | 8dbd80610aee01b8064ca813e1dd7ca44ab3f7b6 (patch) | |
| tree | e9b8c765a412d957680acabdec7f04ff01082930 /src/usermanager.cpp | |
| parent | Include <array> or <tr1/array> globally (diff) | |
Keep multiple IOHookProvider references in class ListenSocket
This adds the <bind:hook> config option which works together with <bind:ssl>
Diffstat (limited to 'src/usermanager.cpp')
| -rw-r--r-- | src/usermanager.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/usermanager.cpp b/src/usermanager.cpp index fe052fcfc..95deca00a 100644 --- a/src/usermanager.cpp +++ b/src/usermanager.cpp @@ -72,8 +72,12 @@ void UserManager::AddUser(int socket, ListenSocket* via, irc::sockets::sockaddrs UserIOHandler* eh = &New->eh; // If this listener has an IO hook provider set then tell it about the connection - if (via->iohookprov) - via->iohookprov->OnAccept(eh, client, server); + for (ListenSocket::IOHookProvList::iterator i = via->iohookprovs.begin(); i != via->iohookprovs.end(); ++i) + { + ListenSocket::IOHookProvRef& iohookprovref = *i; + if (iohookprovref) + iohookprovref->OnAccept(eh, client, server); + } ServerInstance->Logs->Log("USERS", LOG_DEBUG, "New user fd: %d", socket); |
