diff options
| author | 2023-01-23 11:09:17 +0000 | |
|---|---|---|
| committer | 2023-01-23 13:07:53 +0000 | |
| commit | 9db9d5abe4abd975cd8725283f2efcd4bcae5f8e (patch) | |
| tree | 8ba590ee769bdbe5338cfcfecc68a395386c3425 /src/users.cpp | |
| parent | Replace VAFORMAT/InspIRCd::Format/... with fmt::sprintf. (diff) | |
Convert WriteToSnoMask/WriteGlobalSno to use fmtlib format strings.
Diffstat (limited to 'src/users.cpp')
| -rw-r--r-- | src/users.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/users.cpp b/src/users.cpp index 7ea98a2fd..7a92403ef 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -168,8 +168,8 @@ void UserIOHandler::OnDataReady() if (recvq.length() > user->GetClass()->recvqmax && !user->HasPrivPermission("users/flood/increased-buffers")) { ServerInstance->Users.QuitUser(user, "RecvQ exceeded"); - ServerInstance->SNO.WriteToSnoMask('a', "User %s RecvQ of %zu exceeds connect class maximum of %lu", - user->nick.c_str(), recvq.length(), user->GetClass()->recvqmax); + ServerInstance->SNO.WriteToSnoMask('a', "User {} RecvQ of {} exceeds connect class maximum of {}", + user->nick, recvq.length(), user->GetClass()->recvqmax); return; } @@ -430,9 +430,9 @@ void LocalUser::FullConnect() FOREACH_MOD(OnPostConnect, (this)); - ServerInstance->SNO.WriteToSnoMask('c', "Client connecting on port %hu (class %s): %s (%s) [%s\x0F]", - this->server_sa.port(), this->GetClass()->name.c_str(), GetFullRealHost().c_str(), - this->GetIPString().c_str(), this->GetRealName().c_str()); + ServerInstance->SNO.WriteToSnoMask('c', "Client connecting on port {} (class {}): {} ({}) [{}\x0F]", + server_sa.port(), GetClass()->GetName(), GetFullRealHost(), GetIPString(), GetRealName()); + ServerInstance->Logs.Debug("BANCACHE", "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) |
