]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_httpd_config.cpp
Sync helpop chmodes s and p with docs
[user/henk/code/inspircd.git] / src / modules / m_httpd_config.cpp
index 25d2f54bf369431b986d82139c8b83419aba9e86..3a842416874eedf3f1f2ddb892e12a5da53672fa 100644 (file)
@@ -1,8 +1,12 @@
 /*
  * InspIRCd -- Internet Relay Chat Daemon
  *
+ *   Copyright (C) 2013, 2017-2018, 2020 Sadie Powell <sadie@witchery.services>
+ *   Copyright (C) 2013, 2015 Attila Molnar <attilamolnar@hush.com>
+ *   Copyright (C) 2012 Robby <robby@chatbelgie.be>
  *   Copyright (C) 2009-2010 Daniel De Graaf <danieldg@inspircd.org>
- *   Copyright (C) 2008 Craig Edwards <craigedwards@brainbox.cc>
+ *   Copyright (C) 2009 Uli Schlachter <psychon@inspircd.org>
+ *   Copyright (C) 2008, 2010 Craig Edwards <brain@inspircd.org>
  *
  * This file is part of InspIRCd.  InspIRCd is free software: you can
  * redistribute it and/or modify it under the terms of the GNU General Public
@@ -34,10 +38,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;
@@ -70,7 +74,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);
        }
 };