1
0
mirror of https://github.com/anope/anope.git synced 2026-07-01 16:46:38 +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
+2 -9
View File
@@ -358,11 +358,7 @@ void User::SendMessage(CommandSource &source, const Anope::string &msg)
void User::Identify(NickAlias *na)
{
if (this->nick.equals_ci(na->nick))
{
na->last_userhost = this->GetIdent() + "@" + this->GetDisplayedHost();
na->last_userhost_real = this->GetIdent() + "@" + this->host;
na->last_seen = Anope::CurTime;
}
na->UpdateSeen(this);
IRCD->SendLogin(this, na);
@@ -515,10 +511,7 @@ void User::UpdateHost()
NickAlias *na = NickAlias::Find(this->nick);
if (na && this->IsIdentified(true))
{
na->last_userhost = this->GetIdent() + "@" + this->GetDisplayedHost();
na->last_userhost_real = this->GetIdent() + "@" + this->host;
}
na->UpdateSeen(this);
}
void User::SetAway(const Anope::string &msg, time_t ts)