aboutsummaryrefslogtreecommitdiffstats
path: root/modules/sslmodes.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2024-08-22 10:26:43 +0100
committerGravatar Sadie Powell2024-08-22 11:12:52 +0100
commit6b123d4bc61c2db8e379dd5e681834c4053e661d (patch)
tree77621bb30f54b0c444e31a78b2c5c9a67955b723 /modules/sslmodes.cpp
parentMerge branch 'insp4' into master. (diff)
Use C++20 <format> instead of fmtlib when available.
Diffstat (limited to 'modules/sslmodes.cpp')
-rw-r--r--modules/sslmodes.cpp6
1 files changed, 3 insertions, 3 deletions
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;
}