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

Rename some fields to be more accurately named.

This commit is contained in:
Sadie Powell
2025-07-07 10:20:09 +01:00
parent 80c0adf7c8
commit 97389cd105
13 changed files with 76 additions and 68 deletions
+4 -6
View File
@@ -376,8 +376,8 @@ void User::Identify(NickAlias *na)
{
if (this->nick.equals_ci(na->nick))
{
na->last_usermask = this->GetIdent() + "@" + this->GetDisplayedHost();
na->last_realhost = this->GetIdent() + "@" + this->host;
na->last_userhost = this->GetIdent() + "@" + this->GetDisplayedHost();
na->last_userhost_real = this->GetIdent() + "@" + this->host;
na->last_realname = this->realname;
na->last_seen = Anope::CurTime;
}
@@ -534,10 +534,8 @@ void User::UpdateHost()
NickAlias *na = NickAlias::Find(this->nick);
if (na && this->IsIdentified(true))
{
Anope::string last_usermask = this->GetIdent() + "@" + this->GetDisplayedHost();
Anope::string last_realhost = this->GetIdent() + "@" + this->host;
na->last_usermask = last_usermask;
na->last_realhost = last_realhost;
na->last_userhost = this->GetIdent() + "@" + this->GetDisplayedHost();
na->last_userhost_real = this->GetIdent() + "@" + this->host;
// This is called on signon, and if users are introduced with an account it won't update
na->last_realname = this->realname;
}