diff options
Diffstat (limited to 'modules/webcpanel/pages/index.h')
-rw-r--r-- | modules/webcpanel/pages/index.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/webcpanel/pages/index.h b/modules/webcpanel/pages/index.h index 76e3d12a1..771cbf8fc 100644 --- a/modules/webcpanel/pages/index.h +++ b/modules/webcpanel/pages/index.h @@ -12,8 +12,13 @@ namespace WebCPanel class Index : public WebPanelPage { + static const int FLUSH_TIME = 60; + + Anope::hash_map<time_t> last_login_attempt; + time_t last_clear; + public: - Index(const Anope::string &u) : WebPanelPage(u) { } + Index(const Anope::string &u) : WebPanelPage(u), last_clear(0) { } bool OnRequest(HTTPProvider *, const Anope::string &, HTTPClient *, HTTPMessage &, HTTPReply &) anope_override; }; |