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/autoop.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/autoop.cpp') diff --git a/modules/autoop.cpp b/modules/autoop.cpp index 2cf288493..b127b9659 100644 --- a/modules/autoop.cpp +++ b/modules/autoop.cpp @@ -68,7 +68,7 @@ public: if (change.adding && !mh) { - source->WriteNumeric(ERR_UNKNOWNMODE, mid, fmt::format("Cannot find prefix mode '{}' for autoop", mid)); + source->WriteNumeric(ERR_UNKNOWNMODE, mid, FMT::format("Cannot find prefix mode '{}' for autoop", mid)); return MOD_RES_DENY; } else if (!mh) @@ -80,7 +80,7 @@ public: if (mh->GetLevelRequired(change.adding) > mylevel) { - source->WriteNumeric(ERR_CHANOPRIVSNEEDED, channel->name, fmt::format("You must be able to {} mode {} ({}) to {} an autoop containing it", + source->WriteNumeric(ERR_CHANOPRIVSNEEDED, channel->name, FMT::format("You must be able to {} mode {} ({}) to {} an autoop containing it", change.adding ? "set" : "unset", mh->GetModeChar(), mh->name, change.adding ? "add" : "remove")); return MOD_RES_DENY; } -- cgit v1.3.1-10-gc9f91