summaryrefslogtreecommitdiff
path: root/include/modules
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 /include/modules
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 'include/modules')
-rw-r--r--include/modules/chanserv/chanaccess.h10
-rw-r--r--include/modules/nickserv/account.h2
2 files changed, 6 insertions, 6 deletions
diff --git a/include/modules/chanserv/chanaccess.h b/include/modules/chanserv/chanaccess.h
index 2d3aec96b..faaf48175 100644
--- a/include/modules/chanserv/chanaccess.h
+++ b/include/modules/chanserv/chanaccess.h
@@ -34,10 +34,10 @@ class CoreExport ChanAccess : public Serialize::Object
public:
static constexpr const char *const NAME = "access";
- Channel *channel = nullptr;
- Serialize::Object *object = nullptr;
- Anope::string creator, mask;
- time_t last_seen = 0, created = 0;
+ Serialize::Storage<Channel *> channel;
+ Serialize::Storage<Serialize::Object *> object;
+ Serialize::Storage<Anope::string> creator, mask;
+ Serialize::Storage<time_t> last_seen, created;
using Serialize::Object::Object;
@@ -131,4 +131,4 @@ class CoreExport ChanAccess : public Serialize::Object
}
};
-} // namespace ChanServ \ No newline at end of file
+} // namespace ChanServ
diff --git a/include/modules/nickserv/account.h b/include/modules/nickserv/account.h
index 511b1220f..ebe1061b6 100644
--- a/include/modules/nickserv/account.h
+++ b/include/modules/nickserv/account.h
@@ -30,7 +30,7 @@ class CoreExport Account : public Serialize::Object
public:
static constexpr const char *const NAME = "account";
-#warning "this gets lost"
+#warning "move lastmail to a field"
/* Last time an email was sent to this user */
time_t lastmail = 0;
/* Users online now logged into this account */