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/sslmodes.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/sslmodes.cpp') diff --git a/modules/sslmodes.cpp b/modules/sslmodes.cpp index 07880eef1..213115bcc 100644 --- a/modules/sslmodes.cpp +++ b/modules/sslmodes.cpp @@ -106,7 +106,7 @@ public: if (nonssl) { - source->WriteNumeric(ERR_ALLMUSTSSL, channel->name, fmt::format("All members of the channel must be connected via TLS ({}/{} are non-TLS)", + source->WriteNumeric(ERR_ALLMUSTSSL, channel->name, FMT::format("All members of the channel must be connected via TLS ({}/{} are non-TLS)", nonssl, channel->GetUsers().size())); return false; } @@ -189,14 +189,14 @@ public: { if (!api) { - user->WriteNumeric(ERR_SECUREONLYCHAN, cname, fmt::format("Cannot join channel; unable to determine if you are a TLS user (+{} is set)", + user->WriteNumeric(ERR_SECUREONLYCHAN, cname, FMT::format("Cannot join channel; unable to determine if you are a TLS user (+{} is set)", sslm.GetModeChar())); return MOD_RES_DENY; } if (!api->IsSecure(user)) { - user->WriteNumeric(ERR_SECUREONLYCHAN, cname, fmt::format("Cannot join channel; TLS users only (+{} is set)", + user->WriteNumeric(ERR_SECUREONLYCHAN, cname, FMT::format("Cannot join channel; TLS users only (+{} is set)", sslm.GetModeChar())); return MOD_RES_DENY; } -- cgit v1.3.1-10-gc9f91