From 5c4badf8ea3ba775854f0d26d3f2e0e119584faa Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Mon, 23 Jan 2023 07:42:07 +0000 Subject: Replace InspIRCd::Format with fmt::format. --- src/modules/m_timedbans.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/modules/m_timedbans.cpp') diff --git a/src/modules/m_timedbans.cpp b/src/modules/m_timedbans.cpp index db41acaff..c3986ac70 100644 --- a/src/modules/m_timedbans.cpp +++ b/src/modules/m_timedbans.cpp @@ -151,8 +151,8 @@ public: if (sendnotice) { - const std::string message = InspIRCd::Format("Timed ban %s added by %s on %s lasting for %s.", - mask.c_str(), user->nick.c_str(), channel->name.c_str(), Duration::ToString(duration).c_str()); + const std::string message = INSP_FORMAT("Timed ban {} added by {} on {} lasting for {}.", + mask, user->nick, channel->name, Duration::ToString(duration)); // If halfop is loaded, send notice to halfops and above, otherwise send to ops and above PrefixMode* mh = ServerInstance->Modes.FindNearestPrefixMode(HALFOP_VALUE); @@ -256,8 +256,8 @@ public: { if (cmd.sendnotice) { - const std::string message = InspIRCd::Format("Timed ban %s set by %s on %s has expired.", - timedban.mask.c_str(), timedban.setter.c_str(), timedban.chan->name.c_str()); + const std::string message = INSP_FORMAT("Timed ban {} set by {} on {} has expired.", + timedban.mask, timedban.setter, timedban.chan->name); // If halfop is loaded, send notice to halfops and above, otherwise send to ops and above PrefixMode* mh = ServerInstance->Modes.FindNearestPrefixMode(HALFOP_VALUE); -- cgit v1.3.1-10-gc9f91