From b918f4906a21d6f37de5c7d503c8da1770df966d Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Fri, 7 Jun 2024 14:12:59 +0100 Subject: Always use fmtlib directly. --- src/modules/m_remove.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/modules/m_remove.cpp') diff --git a/src/modules/m_remove.cpp b/src/modules/m_remove.cpp index a0b209f98..ece78ec18 100644 --- a/src/modules/m_remove.cpp +++ b/src/modules/m_remove.cpp @@ -82,7 +82,7 @@ public: if (!channel->HasUser(target)) { - user->WriteNotice(INSP_FORMAT("*** User {} is not on channel {}", target->nick, channel->name)); + user->WriteNotice(fmt::format("*** User {} is not on channel {}", target->nick, channel->name)); return CmdResult::FAILURE; } @@ -128,21 +128,21 @@ public: /* Build up the part reason string. */ std::string reason = "Removed by " + user->nick + ": " + reasonparam; - channel->WriteRemoteNotice(INSP_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); } else { - user->WriteNotice(INSP_FORMAT("*** You do not have access to /REMOVE {} from {}", target->nick, channel->name)); + user->WriteNotice(fmt::format("*** You do not have access to /REMOVE {} from {}", target->nick, channel->name)); return CmdResult::FAILURE; } } else { /* m_nokicks.so was loaded and +Q was set, block! */ - user->WriteNumeric(ERR_RESTRICTED, channel->name, INSP_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