diff options
author | DukePyrolator <DukePyrolator@anope.org> | 2011-08-11 22:21:40 +0200 |
---|---|---|
committer | DukePyrolator <DukePyrolator@anope.org> | 2011-08-11 22:21:40 +0200 |
commit | c2780e1de47b4aead8ca5e2c7a7675ea987a9bb4 (patch) | |
tree | 30a58f896a582cbf0278c486a8f1b200ef35bb32 /src | |
parent | 4e1f54ff9c9da71b657e024e67fc0966e7a82825 (diff) |
Added a separate field for last seen realhost to ns_info, shown to services admins only
Diffstat (limited to 'src')
-rw-r--r-- | src/users.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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; } } |