summaryrefslogtreecommitdiff
path: root/src/users.cpp
diff options
context:
space:
mode:
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;
}
}