diff options
| author | 2023-01-23 11:09:17 +0000 | |
|---|---|---|
| committer | 2023-01-23 13:07:53 +0000 | |
| commit | 9db9d5abe4abd975cd8725283f2efcd4bcae5f8e (patch) | |
| tree | 8ba590ee769bdbe5338cfcfecc68a395386c3425 /src/usermanager.cpp | |
| parent | Replace VAFORMAT/InspIRCd::Format/... with fmt::sprintf. (diff) | |
Convert WriteToSnoMask/WriteGlobalSno to use fmtlib format strings.
Diffstat (limited to 'src/usermanager.cpp')
| -rw-r--r-- | src/usermanager.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/usermanager.cpp b/src/usermanager.cpp index 2977d20e7..43dc163fb 100644 --- a/src/usermanager.cpp +++ b/src/usermanager.cpp @@ -181,7 +181,7 @@ void UserManager::AddUser(int socket, ListenSocket* via, const irc::sockets::soc if (this->local_users.size() > ServerInstance->Config->SoftLimit) { - ServerInstance->SNO.WriteToSnoMask('a', "Warning: softlimit value has been reached: %lu clients", ServerInstance->Config->SoftLimit); + ServerInstance->SNO.WriteToSnoMask('a', "Warning: softlimit value has been reached: {} clients", ServerInstance->Config->SoftLimit); this->QuitUser(New, "No more connections allowed"); return; } @@ -301,8 +301,8 @@ void UserManager::QuitUser(User* user, const std::string& quitmessage, const std if (lu->IsFullyConnected()) { - ServerInstance->SNO.WriteToSnoMask('q', "Client exiting: %s (%s) [%s]", user->GetFullRealHost().c_str(), - user->GetIPString().c_str(), operquitmsg.c_str()); + ServerInstance->SNO.WriteToSnoMask('q', "Client exiting: {} ({}) [{}]", user->GetFullRealHost(), + user->GetIPString(), operquitmsg); } local_users.erase(lu); if (lu->GetClass()) |
