1
0
mirror of https://github.com/anope/anope.git synced 2026-06-26 13:16:38 +02:00

Remove time from the name of some variables where its obvious.

This commit is contained in:
Sadie Powell
2025-04-19 22:53:49 +01:00
parent c8b3819767
commit f5a85c69d2
29 changed files with 92 additions and 92 deletions
+3 -3
View File
@@ -80,7 +80,7 @@ void NickCore::Type::Serialize(const Serializable *obj, Serialize::Data &data) c
data.Store("email", nc->email);
data.Store("language", nc->language);
data.Store("lastmail", nc->lastmail);
data.Store("time_registered", nc->time_registered);
data.Store("time_registered", nc->registered);
data.Store("memomax", nc->memos.memomax);
std::ostringstream oss;
@@ -110,7 +110,7 @@ Serializable *NickCore::Type::Unserialize(Serializable *obj, Serialize::Data &da
data["email"] >> nc->email;
data["language"] >> nc->language;
data["lastmail"] >> nc->lastmail;
data["time_registered"] >> nc->time_registered;
data["time_registered"] >> nc->registered;
data["memomax"] >> nc->memos.memomax;
{
Anope::string buf;
@@ -259,7 +259,7 @@ uint64_t NickCore::GetId()
uint64_t attempt = 0;
while (!this->id)
{
const auto newidstr = this->display + "\0" + Anope::ToString(this->time_registered) + "\0" + Anope::ToString(attempt++);
const auto newidstr = this->display + "\0" + Anope::ToString(this->registered) + "\0" + Anope::ToString(attempt++);
const auto newid = Anope::hash_cs()(newidstr);
if (NickCoreIdList->emplace(newid, this).second)
{