diff options
| author | 2025-03-01 16:06:32 +0000 | |
|---|---|---|
| committer | 2025-03-01 16:06:32 +0000 | |
| commit | 32a127d2e0c0a624d12cf9570905fec264554550 (patch) | |
| tree | cdb0a259159753d4479ae36799256d1d807779d0 /src/modules/m_permchannels.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/modules/m_permchannels.cpp')
| -rw-r--r-- | src/modules/m_permchannels.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_permchannels.cpp b/src/modules/m_permchannels.cpp index 5c6713c73..413ac46fc 100644 --- a/src/modules/m_permchannels.cpp +++ b/src/modules/m_permchannels.cpp @@ -74,7 +74,7 @@ static bool WriteDatabase(PermChannel& permchanmode, bool save_listmodes, unsign if (permchannelsconf.empty()) return true; - const std::string permchannelsnewconf = permchannelsconf + ".new." + ConvToStr(ServerInstance->Time()); + const auto permchannelsnewconf = INSP_FORMAT("{}.new.{}", permchannelsconf, ServerInstance->Time()); std::ofstream stream(permchannelsnewconf); if (!stream.is_open()) { |
