diff options
| author | 2023-08-18 11:17:36 +0100 | |
|---|---|---|
| committer | 2023-08-18 11:38:55 +0100 | |
| commit | 0bf6ed766c58f34da6f1edd81ca431177b826686 (patch) | |
| tree | 19db00194cae6b98e19641e0cfba16f50c5341fa /src/modules/m_httpd_stats.cpp | |
| parent | Fix an unclosed tag in the httpd_stats module. (diff) | |
| download | inspircd++-0bf6ed766c58f34da6f1edd81ca431177b826686.tar.gz inspircd++-0bf6ed766c58f34da6f1edd81ca431177b826686.tar.bz2 inspircd++-0bf6ed766c58f34da6f1edd81ca431177b826686.zip | |
Always enable HTTP parameters for user statistics.
Diffstat (limited to 'src/modules/m_httpd_stats.cpp')
| -rw-r--r-- | src/modules/m_httpd_stats.cpp | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/src/modules/m_httpd_stats.cpp b/src/modules/m_httpd_stats.cpp index 01a67a968..7fc78736d 100644 --- a/src/modules/m_httpd_stats.cpp +++ b/src/modules/m_httpd_stats.cpp @@ -451,7 +451,6 @@ class ModuleHttpStats final private: HTTPdAPI API; ISupport::EventProvider isupportevprov; - bool enableparams = false; public: ModuleHttpStats() @@ -463,16 +462,6 @@ public: isevprov = &isupportevprov; } - void ReadConfig(ConfigStatus& status) override - { - const auto& conf = ServerInstance->Config->ConfValue("httpstats"); - - // Parameterized queries may cause a performance issue - // Due to the sheer volume of data - // So default them to disabled - enableparams = conf->getBool("enableparams"); - } - ModResult OnHTTPRequest(HTTPRequest& request) override { if (request.GetPath().compare(0, 6, "/stats")) @@ -499,10 +488,7 @@ public: } else if (request.GetPath() == "/stats/users") { - if (enableparams) - Stats::ListUsers(serializer, request.GetParsedURI().query_params); - else - Stats::Users(serializer); + Stats::ListUsers(serializer, request.GetParsedURI().query_params); } else { |
