diff options
| author | 2024-08-22 10:26:43 +0100 | |
|---|---|---|
| committer | 2024-08-22 11:12:52 +0100 | |
| commit | 6b123d4bc61c2db8e379dd5e681834c4053e661d (patch) | |
| tree | 77621bb30f54b0c444e31a78b2c5c9a67955b723 /modules/timedbans.cpp | |
| parent | Merge branch 'insp4' into master. (diff) | |
Use C++20 <format> instead of fmtlib when available.
Diffstat (limited to 'modules/timedbans.cpp')
| -rw-r--r-- | modules/timedbans.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/timedbans.cpp b/modules/timedbans.cpp index 27d476f7d..37e24ba77 100644 --- a/modules/timedbans.cpp +++ b/modules/timedbans.cpp @@ -151,7 +151,7 @@ public: if (sendnotice) { - const std::string message = fmt::format("Timed ban {} added by {} on {} lasting for {}.", + const std::string message = FMT::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 @@ -240,7 +240,7 @@ public: { if (cmd.sendnotice) { - const std::string message = fmt::format("Timed ban {} set by {} on {} has expired.", + const std::string message = FMT::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 |
