diff options
| author | 2023-01-23 07:42:07 +0000 | |
|---|---|---|
| committer | 2023-01-23 13:07:53 +0000 | |
| commit | 5c4badf8ea3ba775854f0d26d3f2e0e119584faa (patch) | |
| tree | 05dd2c5c545f12f71866be6422146477ddd30e3f /include/modules | |
| parent | Vendor the fmtlib library. (diff) | |
Replace InspIRCd::Format with fmt::format.
Diffstat (limited to 'include/modules')
| -rw-r--r-- | include/modules/ircv3_replies.h | 4 | ||||
| -rw-r--r-- | include/modules/ircv3_servertime.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/include/modules/ircv3_replies.h b/include/modules/ircv3_replies.h index 39c28ca2a..5d19048f6 100644 --- a/include/modules/ircv3_replies.h +++ b/include/modules/ircv3_replies.h @@ -67,9 +67,9 @@ private: void SendNoticeInternal(LocalUser* user, const Command* command, const std::string& description) { if (command) - user->WriteNotice(InspIRCd::Format("*** %s: %s", command->name.c_str(), description.c_str())); + user->WriteNotice(INSP_FORMAT("*** {}: {}", command->name, description)); else - user->WriteNotice(InspIRCd::Format("*** %s", description.c_str())); + user->WriteNotice(INSP_FORMAT("*** {}", description)); } protected: diff --git a/include/modules/ircv3_servertime.h b/include/modules/ircv3_servertime.h index c5cc7b2b2..7ebb7d999 100644 --- a/include/modules/ircv3_servertime.h +++ b/include/modules/ircv3_servertime.h @@ -35,7 +35,7 @@ namespace IRCv3 inline std::string FormatTime(time_t secs, long millisecs = 0) { std::string timestr = InspIRCd::TimeString(secs, "%Y-%m-%dT%H:%M:%S.Z", true); - timestr.insert(20, InspIRCd::Format("%03ld", millisecs)); + timestr.insert(20, INSP_FORMAT("{:03}", millisecs)); return timestr; } } |
