From aeb8f29438358a07cc62f167456d6f04a8c84668 Mon Sep 17 00:00:00 2001 From: Adam Date: Thu, 28 Jul 2016 21:51:16 -0400 Subject: Add missing operserv/stats header --- include/modules/operserv/stats.h | 17 +++++++++++++++++ modules/chanserv/main/chanserv.cpp | 2 -- modules/operserv/stats.cpp | 8 ++++---- 3 files changed, 21 insertions(+), 6 deletions(-) create mode 100644 include/modules/operserv/stats.h diff --git a/include/modules/operserv/stats.h b/include/modules/operserv/stats.h new file mode 100644 index 000000000..1e2e5be3a --- /dev/null +++ b/include/modules/operserv/stats.h @@ -0,0 +1,17 @@ + +#pragma once + +class Stats : public Serialize::Object +{ + public: + static constexpr const char *const NAME = "stats"; + + using Serialize::Object::Object; + + virtual unsigned int GetMaxUserCount() anope_abstract; + virtual void SetMaxUserCount(unsigned int i) anope_abstract; + + virtual time_t GetMaxUserTime() anope_abstract; + virtual void SetMaxUserTime(time_t t) anope_abstract; +}; + diff --git a/modules/chanserv/main/chanserv.cpp b/modules/chanserv/main/chanserv.cpp index f579ec0ae..e2ead4794 100644 --- a/modules/chanserv/main/chanserv.cpp +++ b/modules/chanserv/main/chanserv.cpp @@ -50,7 +50,6 @@ class ChanServCore : public Module std::vector Privileges; ChanServ::registered_channel_map registered_channels; ChannelType channel_type; -// ChanAccessType chanaccess_type; LevelType level_type; CSModeType mode_type; @@ -78,7 +77,6 @@ class ChanServCore : public Module , inhabit(this, "inhabit") , always_lower(false) , channel_type(this) -// , chanaccess_type(this) , level_type(this) , mode_type(this) { diff --git a/modules/operserv/stats.cpp b/modules/operserv/stats.cpp index 0fc5e9ae1..8eb9353a9 100644 --- a/modules/operserv/stats.cpp +++ b/modules/operserv/stats.cpp @@ -24,11 +24,11 @@ class StatsImpl : public Stats using Stats::Stats; - unsigned int GetMaxUserCount(); - void SetMaxUserCount(unsigned int i); + unsigned int GetMaxUserCount() override; + void SetMaxUserCount(unsigned int i) override; - time_t GetMaxUserTime(); - void SetMaxUserTime(time_t t); + time_t GetMaxUserTime() override; + void SetMaxUserTime(time_t t) override; }; class StatsType : public Serialize::Type -- cgit