summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2024-03-09 12:20:15 +0000
committerSadie Powell <sadie@witchery.services>2024-03-09 22:22:55 +0000
commit272104af957b3dc38c11137d6c1e63f86e2cf64c (patch)
treeb226c491f6987a5aaf59c7f861f656fa8be39c63 /include
parent51e95d72e3ca49bcb549cb27e8d6b489b8b0c7dd (diff)
Modernize the initialisation of NickAlias and NickCore.
Diffstat (limited to 'include')
-rw-r--r--include/account.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/include/account.h b/include/account.h
index 55ed44669..9a862c3b1 100644
--- a/include/account.h
+++ b/include/account.h
@@ -33,7 +33,7 @@ class CoreExport NickAlias final
, public Extensible
{
Anope::string vhost_ident, vhost_host, vhost_creator;
- time_t vhost_created;
+ time_t vhost_created = 0;
public:
Anope::string nick;
@@ -43,8 +43,9 @@ public:
Anope::string last_usermask;
/* Last uncloaked usermask, requires nickserv/auspex to see */
Anope::string last_realhost;
- time_t time_registered;
- time_t last_seen;
+ time_t time_registered = Anope::CurTime;
+ time_t last_seen = Anope::CurTime;
+
/* Account this nick is tied to. Multiple nicks can be tied to a single account. */
Serialize::Reference<NickCore> nc;
@@ -136,14 +137,14 @@ public:
Serialize::Checker<std::vector<NickAlias *> > aliases;
/* Set if this user is a services operator. o->ot must exist. */
- Oper *o;
+ Oper *o = nullptr;
/* Unsaved data */
/* Number of channels registered by this account */
- uint16_t channelcount;
+ uint16_t channelcount = 0;
/* Last time an email was sent to this user */
- time_t lastmail;
+ time_t lastmail = 0;
/* Users online now logged into this account */
std::list<User *> users;