mirror of
https://github.com/anope/anope.git
synced 2026-06-26 04:46:38 +02:00
Added a separate field for last seen realhost to ns_info, shown to services admins only
This commit is contained in:
@@ -352,7 +352,9 @@ void User::Identify(NickAlias *na)
|
||||
if (this->nick.equals_ci(na->nick))
|
||||
{
|
||||
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_realname = this->realname;
|
||||
na->last_seen = Anope::CurTime;
|
||||
}
|
||||
@@ -501,7 +503,9 @@ void User::UpdateHost()
|
||||
if (na && (this->IsIdentified(true) || this->IsRecognized(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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user