diff options
author | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-10-23 19:40:50 +0000 |
---|---|---|
committer | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-10-23 19:40:50 +0000 |
commit | b6a916c78b573e612a8306d1ec4aa262c6a08631 (patch) | |
tree | 3b4eac6a34f0e01ab1d0fced070f7dcf0e94eda5 | |
parent | 19eef47b54a69e9b223e543672b351bde684ecf0 (diff) |
Fix m_httpd
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11959 e03df62e-2008-0410-955e-edbf42e46eb7
-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; |