1
0
mirror of https://github.com/anope/anope.git synced 2026-07-09 23:23:13 +02:00

Save the last email time for accounts.

This commit is contained in:
Sadie Powell
2024-03-09 13:14:57 +00:00
parent 272104af95
commit 9ead3f15c3
2 changed files with 4 additions and 2 deletions
+2 -2
View File
@@ -128,6 +128,8 @@ public:
Anope::string email;
/* Locale name of the language of the user. Empty means default language */
Anope::string language;
/* Last time an email was sent to this user */
time_t lastmail = 0;
MemoInfo memos;
std::map<Anope::string, Anope::string> last_modes;
@@ -143,8 +145,6 @@ public:
/* Number of channels registered by this account */
uint16_t channelcount = 0;
/* Last time an email was sent to this user */
time_t lastmail = 0;
/* Users online now logged into this account */
std::list<User *> users;
+2
View File
@@ -73,6 +73,7 @@ void NickCore::Serialize(Serialize::Data &data) const
data["pass"] << this->pass;
data["email"] << this->email;
data["language"] << this->language;
data["lastmail"] << this->lastmail;
data["memomax"] << this->memos.memomax;
for (const auto &ignore : this->memos.ignores)
data["memoignores"] << ignore << " ";
@@ -97,6 +98,7 @@ Serializable *NickCore::Unserialize(Serializable *obj, Serialize::Data &data)
data["pass"] >> nc->pass;
data["email"] >> nc->email;
data["language"] >> nc->language;
data["lastmail"] >> nc->lastmail;
data["memomax"] >> nc->memos.memomax;
{
Anope::string buf;