From abbf70b2a35edaf17631e43027828011296924ad Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Mon, 30 Jul 2018 18:50:34 +0100 Subject: Rename User::fullname to realname and make it private. --- src/users.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src/users.cpp') diff --git a/src/users.cpp b/src/users.cpp index fb4888639..5310c7c96 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -586,7 +586,7 @@ void LocalUser::FullConnect() FOREACH_MOD(OnPostConnect, (this)); ServerInstance->SNO->WriteToSnoMask('c',"Client connecting on port %d (class %s): %s (%s) [%s]", - this->GetServerPort(), this->MyClass->name.c_str(), GetFullRealHost().c_str(), this->GetIPString().c_str(), this->fullname.c_str()); + this->GetServerPort(), this->MyClass->name.c_str(), GetFullRealHost().c_str(), this->GetIPString().c_str(), this->GetRealName().c_str()); ServerInstance->Logs->Log("BANCACHE", LOG_DEBUG, "BanCache: Adding NEGATIVE hit for " + this->GetIPString()); ServerInstance->BanCache.AddHit(this->GetIPString(), "", ""); // reset the flood penalty (which could have been raised due to things like auto +x) @@ -708,6 +708,11 @@ const std::string& User::GetRealHost() const return realhost; } +const std::string& User::GetRealName() const +{ + return realname; +} + irc::sockets::cidr_mask User::GetCIDRMask() { unsigned char range = 0; @@ -997,7 +1002,7 @@ bool User::SharesChannelWith(User *other) bool User::ChangeRealName(const std::string& real) { - if (!this->fullname.compare(real)) + if (!this->realname.compare(real)) return true; if (IS_LOCAL(this)) @@ -1008,7 +1013,7 @@ bool User::ChangeRealName(const std::string& real) return false; FOREACH_MOD(OnChangeRealName, (this, real)); } - this->fullname.assign(real, 0, ServerInstance->Config->Limits.MaxReal); + this->realname.assign(real, 0, ServerInstance->Config->Limits.MaxReal); return true; } -- cgit v1.3.1-10-gc9f91