aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_httpd.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2020-11-10 22:23:26 +0000
committerGravatar Sadie Powell2020-11-10 22:23:26 +0000
commitc7690513cdf317f9221cedf4892facdd100ef74d (patch)
tree68ef30e051e99dcd2d9855e410806f2630e86f55 /src/modules/m_httpd.cpp
parentOnly use libc++ when building with AppleClang. (diff)
Convert FIRST_MOD_RESULT_CUSTOM to a variadic function.
Diffstat (limited to 'src/modules/m_httpd.cpp')
-rw-r--r--src/modules/m_httpd.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/modules/m_httpd.cpp b/src/modules/m_httpd.cpp
index 2ca76af2a..42183447a 100644
--- a/src/modules/m_httpd.cpp
+++ b/src/modules/m_httpd.cpp
@@ -292,17 +292,16 @@ class HttpServerSocket : public BufferedSocket, public Timer, public insp::intru
void ServeData()
{
- ModResult MOD_RESULT;
std::string method = http_method_str(static_cast<http_method>(parser.method));
HTTPRequestURI parsed;
ParseURI(uri, parsed);
HTTPRequest acl(method, parsed, &headers, this, ip, body);
- FIRST_MOD_RESULT_CUSTOM(*aclevprov, HTTPACLEventListener, OnHTTPACLCheck, MOD_RESULT, (acl));
- if (MOD_RESULT != MOD_RES_DENY)
+ ModResult res = aclevprov->FirstResult(&HTTPACLEventListener::OnHTTPACLCheck, acl);
+ if (res != MOD_RES_DENY)
{
HTTPRequest request(method, parsed, &headers, this, ip, body);
- FIRST_MOD_RESULT_CUSTOM(*reqevprov, HTTPRequestEventListener, OnHTTPRequest, MOD_RESULT, (request));
- if (MOD_RESULT == MOD_RES_PASSTHRU)
+ res = reqevprov->FirstResult(&HTTPRequestEventListener::OnHTTPRequest, request);
+ if (res == MOD_RES_PASSTHRU)
{
SendHTTPError(404);
}