diff options
| author | 2025-03-01 16:06:32 +0000 | |
|---|---|---|
| committer | 2025-03-01 16:06:32 +0000 | |
| commit | 32a127d2e0c0a624d12cf9570905fec264554550 (patch) | |
| tree | cdb0a259159753d4479ae36799256d1d807779d0 /src/usermanager.cpp | |
| parent | Release v4.6.0. (diff) | |
Avoid the use of ConvToStr in string concatenation.
This function calls INSP_FORMAT in most cases nowadays so we may
as well just call that manually.
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 2a9c6e0de..c6da619b8 100644 --- a/src/usermanager.cpp +++ b/src/usermanager.cpp @@ -65,7 +65,7 @@ namespace if (!user->lastping) { time_t secs = ServerInstance->Time() - (user->nextping - user->GetClass()->pingtime); - const std::string message = "Ping timeout: " + ConvToStr(secs) + (secs != 1 ? " seconds" : " second"); + const std::string message = INSP_FORMAT("Ping timeout: {} {}", secs, (secs != 1 ? "seconds" : "second")); ServerInstance->Users.QuitUser(user, message); return; } |
