diff options
Diffstat (limited to 'src/modules/m_httpd.cpp')
-rw-r--r-- | src/modules/m_httpd.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/m_httpd.cpp b/src/modules/m_httpd.cpp index 748f530ca..4d5bf38ee 100644 --- a/src/modules/m_httpd.cpp +++ b/src/modules/m_httpd.cpp @@ -326,6 +326,7 @@ class ModuleHttpServer : public Module ModuleHttpServer() { HttpModule = this; + ServerInstance->Modules->Attach(I_OnAcceptConnection, this); } void OnRequest(Request& request) @@ -339,7 +340,7 @@ class ModuleHttpServer : public Module ModResult OnAcceptConnection(int nfd, ListenSocket* from, irc::sockets::sockaddrs* client, irc::sockets::sockaddrs* server) { - if (from->bind_tag->getString("type") != "httpd"); + if (from->bind_tag->getString("type") != "httpd") return MOD_RES_PASSTHRU; int port; std::string incomingip; |