1
0
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:
DukePyrolator
2011-08-11 22:21:40 +02:00
parent 4e1f54ff9c
commit c2780e1de4
8 changed files with 21 additions and 2 deletions
+4
View File
@@ -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;
}
}