From ca28f9cfcbff0fbdb2afe96f1427245f83db7c47 Mon Sep 17 00:00:00 2001 From: Adam Date: Thu, 1 Dec 2016 09:25:53 -0500 Subject: 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 --- modules/hostserv/main/vhost.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'modules/hostserv/main') diff --git a/modules/hostserv/main/vhost.h b/modules/hostserv/main/vhost.h index 90ac9140f..bdc6509d7 100644 --- a/modules/hostserv/main/vhost.h +++ b/modules/hostserv/main/vhost.h @@ -25,12 +25,12 @@ class VHostImpl : public HostServ::VHost { friend class VHostType; - Serialize::Object *owner = nullptr; - Anope::string vident; - Anope::string vhost; - Anope::string creator; - time_t created = 0; - bool default_ = false; + Serialize::Storage owner; + Serialize::Storage vident; + Serialize::Storage vhost; + Serialize::Storage creator; + Serialize::Storage created; + Serialize::Storage default_; public: using HostServ::VHost::VHost; -- cgit