diff options
| author | 2024-08-22 10:26:43 +0100 | |
|---|---|---|
| committer | 2024-08-22 11:12:52 +0100 | |
| commit | 6b123d4bc61c2db8e379dd5e681834c4053e661d (patch) | |
| tree | 77621bb30f54b0c444e31a78b2c5c9a67955b723 /modules/remove.cpp | |
| parent | Merge branch 'insp4' into master. (diff) | |
Use C++20 <format> instead of fmtlib when available.
Diffstat (limited to 'modules/remove.cpp')
| -rw-r--r-- | modules/remove.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/remove.cpp b/modules/remove.cpp index f718461bf..a4f54a384 100644 --- a/modules/remove.cpp +++ b/modules/remove.cpp @@ -128,7 +128,7 @@ public: /* Build up the part reason string. */ std::string reason = "Removed by " + user->nick + ": " + reasonparam; - channel->WriteRemoteNotice(fmt::format("{} removed {} from the channel", user->nick, target->nick)); + channel->WriteRemoteNotice(FMT::format("{} removed {} from the channel", user->nick, target->nick)); target->WriteNotice("*** " + user->nick + " removed you from " + channel->name + " with the message: " + reasonparam); channel->PartUser(target, reason); @@ -142,7 +142,7 @@ public: else { /* m_nokicks.so was loaded and +Q was set, block! */ - user->WriteNumeric(ERR_RESTRICTED, channel->name, fmt::format("Can't remove user {} from channel (+{} is set)", + user->WriteNumeric(ERR_RESTRICTED, channel->name, FMT::format("Can't remove user {} from channel (+{} is set)", target->nick, servprotectmode->GetModeChar())); return CmdResult::FAILURE; } |
