diff options
| author | 2023-06-02 14:59:50 +0100 | |
|---|---|---|
| committer | 2023-06-04 10:56:50 +0100 | |
| commit | 2b8a7a2db9e697a6767a1fce8a7f9b630ea03fcb (patch) | |
| tree | 970fb6ba7e8755876fa4463468b9be03919a6153 | |
| parent | Fix extracting data from the 1205 version/fullversion SINFO keys. (diff) | |
Remove unnecessary prefix from bancache log messages.
| -rw-r--r-- | src/usermanager.cpp | 4 | ||||
| -rw-r--r-- | src/users.cpp | 2 | ||||
| -rw-r--r-- | src/xline.cpp | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/usermanager.cpp b/src/usermanager.cpp index c706d8d90..bbb93f113 100644 --- a/src/usermanager.cpp +++ b/src/usermanager.cpp @@ -202,7 +202,7 @@ void UserManager::AddUser(int socket, ListenSocket* via, const irc::sockets::soc if (!b->Type.empty() && !New->exempt) { /* user banned */ - ServerInstance->Logs.Debug("BANCACHE", "BanCache: Positive hit for " + New->GetAddress()); + ServerInstance->Logs.Debug("BANCACHE", "Positive hit for " + New->GetAddress()); if (!ServerInstance->Config->XLineMessage.empty()) New->WriteNumeric(ERR_YOUREBANNEDCREEP, ServerInstance->Config->XLineMessage); @@ -222,7 +222,7 @@ void UserManager::AddUser(int socket, ListenSocket* via, const irc::sockets::soc } else { - ServerInstance->Logs.Debug("BANCACHE", "BanCache: Negative hit for " + New->GetAddress()); + ServerInstance->Logs.Debug("BANCACHE", "Negative hit for " + New->GetAddress()); } } else diff --git a/src/users.cpp b/src/users.cpp index e6dcb7cd5..d50b679ac 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -492,7 +492,7 @@ void LocalUser::FullConnect() ServerInstance->SNO.WriteToSnoMask('c', "Client connecting on port {} (class {}): {} ({}) [{}\x0F]", server_sa.port(), GetClass()->GetName(), GetRealMask(), GetAddress(), GetRealName()); - ServerInstance->Logs.Debug("BANCACHE", "BanCache: Adding NEGATIVE hit for " + this->GetAddress()); + ServerInstance->Logs.Debug("BANCACHE", "Adding NEGATIVE hit for " + this->GetAddress()); ServerInstance->BanCache.AddHit(this->GetAddress(), "", ""); // reset the flood penalty (which could have been raised due to things like auto +x) CommandFloodPenalty = 0; diff --git a/src/xline.cpp b/src/xline.cpp index 46cdca560..e9fa2a256 100644 --- a/src/xline.cpp +++ b/src/xline.cpp @@ -582,7 +582,7 @@ void XLine::DefaultApply(User* u, const std::string& line, bool bancache) if (bancache) { - ServerInstance->Logs.Debug("BANCACHE", "BanCache: Adding positive hit (" + line + ") for " + u->GetAddress()); + ServerInstance->Logs.Debug("BANCACHE", "Adding positive hit (" + line + ") for " + u->GetAddress()); ServerInstance->BanCache.AddHit(u->GetAddress(), this->type, banreason, (this->duration > 0 ? (this->expiry - ServerInstance->Time()) : 0)); } } |
