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/nickserv/cert.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/nickserv/cert.cpp')
-rw-r--r-- | modules/nickserv/cert.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/modules/nickserv/cert.cpp b/modules/nickserv/cert.cpp index f58515d70..51eae0fb0 100644 --- a/modules/nickserv/cert.cpp +++ b/modules/nickserv/cert.cpp @@ -57,12 +57,11 @@ class NSCertEntryImpl : public NSCertEntry { friend class NSCertEntryType; - NickServ::Account *account = nullptr; - Anope::string cert; + Serialize::Storage<NickServ::Account *> account; + Serialize::Storage<Anope::string> cert; public: - NSCertEntryImpl(Serialize::TypeBase *type) : NSCertEntry(type) { } - NSCertEntryImpl(Serialize::TypeBase *type, Serialize::ID id) : NSCertEntry(type, id) { } + using NSCertEntry::NSCertEntry; ~NSCertEntryImpl(); NickServ::Account *GetAccount() override; |