summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2016-10-06 14:20:31 -0400
committerAdam <Adam@anope.org>2016-10-06 14:20:31 -0400
commitd280234e14974c7db1c243b8c30caa63d82bd396 (patch)
treee7cf5b39a7272d2b1e682a751d9f5c78eb876160 /src
parent897fb6517af066ca284f6190913ad91ae30b6a6b (diff)
#1681 update last realname always on signon
Diffstat (limited to 'src')
-rw-r--r--src/users.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/users.cpp b/src/users.cpp
index f107d8fb3..3d4b7e1b7 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -523,6 +523,8 @@ void User::UpdateHost()
Anope::string last_realhost = this->GetIdent() + "@" + this->host;
na->SetLastUsermask(last_usermask);
na->SetLastRealhost(last_realhost);
+ // This is called on signon, and if users are introduced with an account it won't update
+ na->SetLastRealname(this->realname);
}
}