From c2780e1de47b4aead8ca5e2c7a7675ea987a9bb4 Mon Sep 17 00:00:00 2001 From: DukePyrolator Date: Thu, 11 Aug 2011 22:21:40 +0200 Subject: Added a separate field for last seen realhost to ns_info, shown to services admins only --- src/users.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/users.cpp b/src/users.cpp index 50e84dce3..d1b9945b9 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -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; } } -- cgit