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

Add a method for consistently updating the NickAlias seen data.

This commit is contained in:
Sadie Powell
2025-11-02 17:23:57 +00:00
parent 1d59b05e29
commit 8a8cee4061
5 changed files with 16 additions and 11 deletions
+7
View File
@@ -127,6 +127,13 @@ time_t NickAlias::GetVHostCreated() const
return this->vhost_created;
}
void NickAlias::UpdateSeen(User *u)
{
this->last_seen = Anope::CurTime;
this->last_userhost = u->GetIdent() + "@" + u->GetDisplayedHost();
this->last_userhost_real = u->GetIdent() + "@" + u->host;
}
NickAlias *NickAlias::Find(const Anope::string &nick)
{
nickalias_map::const_iterator it = NickAliasList->find(nick);