]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_httpd.cpp
Skeleton ACL module, and hooks for it. This will provide ip restrictions, passwording...
[user/henk/code/inspircd.git] / src / modules / m_httpd.cpp
index eff9a7ad238f38f7423cf328a98c3a46738550f1..ee45443715baaa172c42b8cf2668d7a8b2cfb28f 100644 (file)
@@ -339,12 +339,17 @@ class HttpServerSocket : public BufferedSocket
                {
                        claimed = false;
                        HTTPRequest httpr(request_type,uri,&headers,this,this->GetIP(),postdata);
-                       Event e((char*)&httpr, (Module*)HttpModule, "httpd_url");
-                       e.Send(this->Instance);
+                       Event acl((char*)&httpr, (Module*)HttpModule, "httpd_acl");
+                       acl.Send(this->Instance);
                        if (!claimed)
                        {
-                               SendHTTPError(404);
-                               Instance->SE->WantWrite(this);
+                               Event e((char*)&httpr, (Module*)HttpModule, "httpd_url");
+                               e.Send(this->Instance);
+                               if (!claimed)
+                               {
+                                       SendHTTPError(404);
+                                       Instance->SE->WantWrite(this);
+                               }
                        }
                }
        }