]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_httpd_config.cpp
Add a shun option to only apply when users are fully connected.
[user/henk/code/inspircd.git] / src / modules / m_httpd_config.cpp
index 2a584fbf089ce9f88dde931cc0fc09957ade9578..b8b1fd7a7af6877e34d2443bef171f2368aa7e70 100644 (file)
@@ -39,10 +39,10 @@ class ModuleHttpConfig : public Module, public HTTPRequestEventListener
 
        ModResult OnHTTPRequest(HTTPRequest& request) CXX11_OVERRIDE
        {
-               if ((request.GetPath() != "/config") && (request.GetPath() != "/config/"))
+               if (request.GetPath() != "/config")
                        return MOD_RES_PASSTHRU;
 
-               ServerInstance->Logs->Log(MODNAME, LOG_DEBUG, "Handling request for the HTTP /config route");
+               ServerInstance->Logs->Log(MODNAME, LOG_DEBUG, "Handling HTTP request for %s", request.GetPath().c_str());
                std::stringstream buffer;
 
                ConfigDataHash& config = ServerInstance->Config->config_data;
@@ -75,7 +75,7 @@ class ModuleHttpConfig : public Module, public HTTPRequestEventListener
 
        Version GetVersion() CXX11_OVERRIDE
        {
-               return Version("Allows for the server configuration to be viewed over HTTP via m_httpd", VF_VENDOR);
+               return Version("Allows the server configuration to be viewed over HTTP via the /config path.", VF_VENDOR);
        }
 };