diff options
| author | 2023-01-23 07:42:07 +0000 | |
|---|---|---|
| committer | 2023-01-23 13:07:53 +0000 | |
| commit | 5c4badf8ea3ba775854f0d26d3f2e0e119584faa (patch) | |
| tree | 05dd2c5c545f12f71866be6422146477ddd30e3f /src/snomasks.cpp | |
| parent | Vendor the fmtlib library. (diff) | |
Replace InspIRCd::Format with fmt::format.
Diffstat (limited to 'src/snomasks.cpp')
| -rw-r--r-- | src/snomasks.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/snomasks.cpp b/src/snomasks.cpp index 9d3097710..2f4a50948 100644 --- a/src/snomasks.cpp +++ b/src/snomasks.cpp @@ -129,7 +129,7 @@ void Snomask::Flush() void Snomask::Send(char letter, const std::string& desc, const std::string& msg) { ServerInstance->Logs.Normal(desc, msg); - const std::string finalmsg = InspIRCd::Format("*** %s: %s", desc.c_str(), msg.c_str()); + const std::string finalmsg = INSP_FORMAT("*** {}: {}", desc, msg); /* Only opers can receive snotices, so we iterate the oper list */ for (auto* user : ServerInstance->Users.all_opers) @@ -148,6 +148,6 @@ std::string Snomask::GetDescription(char letter) const if (!Description.empty()) ret += Description; else - ret += InspIRCd::Format("SNO-%c", tolower(letter)); + ret += INSP_FORMAT("SNO-{}", tolower(letter)); return ret; } |
