summaryrefslogtreecommitdiff
path: root/modules/chanserv/akick.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/chanserv/akick.cpp')
-rw-r--r--modules/chanserv/akick.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/modules/chanserv/akick.cpp b/modules/chanserv/akick.cpp
index 1930cb20b..9338a4dd7 100644
--- a/modules/chanserv/akick.cpp
+++ b/modules/chanserv/akick.cpp
@@ -24,14 +24,13 @@ class AutoKickImpl : public AutoKick
{
friend class AutoKickType;
- ChanServ::Channel *channel = nullptr;
- NickServ::Account *account = nullptr;
- Anope::string mask, reason, creator;
- time_t addtime = 0, last_time = 0;
+ Serialize::Storage<ChanServ::Channel *> channel;
+ Serialize::Storage<NickServ::Account *> account;
+ Serialize::Storage<Anope::string> mask, reason, creator;
+ Serialize::Storage<time_t> addtime, last_time;
public:
- AutoKickImpl(Serialize::TypeBase *type) : AutoKick(type) { }
- AutoKickImpl(Serialize::TypeBase *type, Serialize::ID id) : AutoKick(type, id) { }
+ using AutoKick::AutoKick;
ChanServ::Channel *GetChannel() override;
void SetChannel(ChanServ::Channel *ci) override;