summaryrefslogtreecommitdiff
path: root/src/users.cpp
diff options
context:
space:
mode:
authorDukePyrolator <DukePyrolator@anope.org>2011-08-11 22:21:40 +0200
committerDukePyrolator <DukePyrolator@anope.org>2011-08-11 22:21:40 +0200
commitc2780e1de47b4aead8ca5e2c7a7675ea987a9bb4 (patch)
tree30a58f896a582cbf0278c486a8f1b200ef35bb32 /src/users.cpp
parent4e1f54ff9c9da71b657e024e67fc0966e7a82825 (diff)
Added a separate field for last seen realhost to ns_info, shown to services admins only
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp4
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;
}
}