diff options
Diffstat (limited to 'modules/webcpanel/pages/index.h')
-rw-r--r-- | modules/webcpanel/pages/index.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/modules/webcpanel/pages/index.h b/modules/webcpanel/pages/index.h index 91cf93e79..e94c2061d 100644 --- a/modules/webcpanel/pages/index.h +++ b/modules/webcpanel/pages/index.h @@ -5,22 +5,25 @@ * Please read COPYING and README for further details. */ +#pragma once + #include "modules/httpd.h" namespace WebCPanel { -class Index : public WebPanelPage +class Index final + : public WebPanelPage { static const int FLUSH_TIME = 60; - Anope::hash_map<time_t> last_login_attempt; - time_t last_clear; + Anope::unordered_map<time_t> last_login_attempt; + time_t last_clear = 0; - public: - Index(const Anope::string &u) : WebPanelPage(u), last_clear(0) { } +public: + Index(const Anope::string &u) : WebPanelPage(u) { } - bool OnRequest(HTTPProvider *, const Anope::string &, HTTPClient *, HTTPMessage &, HTTPReply &) anope_override; + bool OnRequest(HTTPProvider *, const Anope::string &, HTTPClient *, HTTPMessage &, HTTPReply &) override; }; } |