summaryrefslogtreecommitdiff
path: root/modules/webcpanel/static_fileserver.h
diff options
context:
space:
mode:
Diffstat (limited to 'modules/webcpanel/static_fileserver.h')
-rw-r--r--modules/webcpanel/static_fileserver.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/modules/webcpanel/static_fileserver.h b/modules/webcpanel/static_fileserver.h
index 991a3d043..ab9399171 100644
--- a/modules/webcpanel/static_fileserver.h
+++ b/modules/webcpanel/static_fileserver.h
@@ -5,14 +5,17 @@
* Please read COPYING and README for further details.
*/
+#pragma once
+
#include "modules/httpd.h"
/* A basic file server. Used for serving static content on disk. */
-class StaticFileServer : public HTTPPage
+class StaticFileServer final
+ : public HTTPPage
{
Anope::string file_name;
- public:
+public:
StaticFileServer(const Anope::string &f_n, const Anope::string &u, const Anope::string &c_t);
- bool OnRequest(HTTPProvider *, const Anope::string &, HTTPClient *, HTTPMessage &, HTTPReply &) anope_override;
+ bool OnRequest(HTTPProvider *, const Anope::string &, HTTPClient *, HTTPMessage &, HTTPReply &) override;
};