diff options
| author | 2023-01-23 07:42:07 +0000 | |
|---|---|---|
| committer | 2023-01-23 13:07:53 +0000 | |
| commit | 5c4badf8ea3ba775854f0d26d3f2e0e119584faa (patch) | |
| tree | 05dd2c5c545f12f71866be6422146477ddd30e3f /src/modules/m_timedbans.cpp | |
| parent | Vendor the fmtlib library. (diff) | |
Replace InspIRCd::Format with fmt::format.
Diffstat (limited to 'src/modules/m_timedbans.cpp')
| -rw-r--r-- | src/modules/m_timedbans.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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); |
