diff options
author | Peter Powell <petpow@saberuk.com> | 2017-10-22 21:53:24 +0100 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2017-10-28 16:16:10 +0100 |
commit | d865b434865907bfad0a187dd403d4ca8144e469 (patch) | |
tree | 4c36b1028ab02ca8ac2d07b867819f96f38c2745 /src/usermanager.cpp | |
parent | 08f6f056667df63d1673bea959c73b75393113c6 (diff) |
Hide User#host and User#dhost and use accessors to modify them.
This removes the need to invalidate the cache after changing a
user's hostname.
Diffstat (limited to 'src/usermanager.cpp')
-rw-r--r-- | src/usermanager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/usermanager.cpp b/src/usermanager.cpp index 12ec36ec7..02c030a42 100644 --- a/src/usermanager.cpp +++ b/src/usermanager.cpp @@ -177,7 +177,7 @@ void UserManager::QuitUser(User* user, const std::string& quitreason, const std: user->quitting = true; ServerInstance->Logs->Log("USERS", LOG_DEBUG, "QuitUser: %s=%s '%s'", user->uuid.c_str(), user->nick.c_str(), quitreason.c_str()); - user->Write("ERROR :Closing link: (%s@%s) [%s]", user->ident.c_str(), user->host.c_str(), operreason ? operreason->c_str() : quitreason.c_str()); + user->Write("ERROR :Closing link: (%s@%s) [%s]", user->ident.c_str(), user->GetRealHost().c_str(), operreason ? operreason->c_str() : quitreason.c_str()); std::string reason; reason.assign(quitreason, 0, ServerInstance->Config->Limits.MaxQuit); |