From b6a916c78b573e612a8306d1ec4aa262c6a08631 Mon Sep 17 00:00:00 2001 From: danieldg Date: Fri, 23 Oct 2009 19:40:50 +0000 Subject: Fix m_httpd git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11959 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_httpd.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3