From 6b123d4bc61c2db8e379dd5e681834c4053e661d Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Thu, 22 Aug 2024 10:26:43 +0100 Subject: Use C++20 instead of fmtlib when available. --- modules/remove.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/remove.cpp') 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; } -- cgit v1.3.1-10-gc9f91