diff options
author | Adam <Adam@anope.org> | 2016-12-01 09:25:53 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2016-12-01 09:25:53 -0500 |
commit | ca28f9cfcbff0fbdb2afe96f1427245f83db7c47 (patch) | |
tree | ac5de801a4db01a7cb689ec670537ad74c7c53e6 /modules/operserv/info.cpp | |
parent | 2f512281029fbf4f7ef9832e05804831ad2d9ba2 (diff) |
Allow objects to opt out of gc, don't gc accounts with users logged in
Also store cached state with the field by using Serialize::Storage for
field storage
Diffstat (limited to 'modules/operserv/info.cpp')
-rw-r--r-- | modules/operserv/info.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/modules/operserv/info.cpp b/modules/operserv/info.cpp index 30c0b06ad..c6038af5a 100644 --- a/modules/operserv/info.cpp +++ b/modules/operserv/info.cpp @@ -27,13 +27,12 @@ class OperInfoImpl : public OperInfo { friend class OperInfoType; - Serialize::Object *target = nullptr; - Anope::string info, creator; - time_t created = 0; + Serialize::Storage<Serialize::Object *> target; + Serialize::Storage<Anope::string> info, creator; + Serialize::Storage<time_t> created; public: - OperInfoImpl(Serialize::TypeBase *type) : OperInfo(type) { } - OperInfoImpl(Serialize::TypeBase *type, Serialize::ID id) : OperInfo(type, id) { } + using OperInfo::OperInfo; Serialize::Object *GetTarget() override; void SetTarget(Serialize::Object *) override; |