summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2016-07-28 21:51:16 -0400
committerAdam <Adam@anope.org>2016-07-28 21:51:16 -0400
commitaeb8f29438358a07cc62f167456d6f04a8c84668 (patch)
tree59a5a7bca9bc9be380ad8f8f87478e79525b13ee
parent0e758a2ac23dc4a001e8e126cec14588da9a9769 (diff)
Add missing operserv/stats header
-rw-r--r--include/modules/operserv/stats.h17
-rw-r--r--modules/chanserv/main/chanserv.cpp2
-rw-r--r--modules/operserv/stats.cpp8
3 files changed, 21 insertions, 6 deletions
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<ChanServ::Privilege> 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<StatsImpl>