summaryrefslogtreecommitdiff
path: root/modules/hostserv/request.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2016-12-01 09:25:53 -0500
committerAdam <Adam@anope.org>2016-12-01 09:25:53 -0500
commitca28f9cfcbff0fbdb2afe96f1427245f83db7c47 (patch)
treeac5de801a4db01a7cb689ec670537ad74c7c53e6 /modules/hostserv/request.cpp
parent2f512281029fbf4f7ef9832e05804831ad2d9ba2 (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/hostserv/request.cpp')
-rw-r--r--modules/hostserv/request.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/modules/hostserv/request.cpp b/modules/hostserv/request.cpp
index 7b66eb59c..9508a9abc 100644
--- a/modules/hostserv/request.cpp
+++ b/modules/hostserv/request.cpp
@@ -24,15 +24,14 @@ class HostRequest : public Serialize::Object
{
friend class HostRequestType;
- NickServ::Account *acc = nullptr;
- Anope::string ident, host;
- time_t time = 0;
+ Serialize::Storage<NickServ::Account *> acc;
+ Serialize::Storage<Anope::string> ident, host;
+ Serialize::Storage<time_t> time;
public:
static constexpr const char *const NAME = "hostrequest";
- HostRequest(Serialize::TypeBase *type) : Serialize::Object(type) { }
- HostRequest(Serialize::TypeBase *type, Serialize::ID id) : Serialize::Object(type, id) { }
+ using Serialize::Object::Object;
NickServ::Account *GetAccount();
void SetAccount(NickServ::Account *);