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/usermanager.cpp | |
parent | 4a12fc9d4bfb77fc2fc05c1052c66294e3774649 (diff) | |
parent | a86e320ac19fbbd6034d0447f048beb8b4a0ad1d (diff) |
Merge branch 'master+websocket'
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); |