aboutsummaryrefslogtreecommitdiff
path: root/modules/repeat.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/repeat.cpp
parentMerge branch 'insp4' into master. (diff)
Use C++20 <format> instead of fmtlib when available.
Diffstat (limited to 'modules/repeat.cpp')
-rw-r--r--modules/repeat.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/repeat.cpp b/modules/repeat.cpp
index 428f19659..a7b74e07e 100644
--- a/modules/repeat.cpp
+++ b/modules/repeat.cpp
@@ -372,14 +372,14 @@ private:
{
if (ms.MaxLines && settings.Lines > ms.MaxLines)
{
- source->WriteNumeric(Numerics::InvalidModeParameter(channel, this, parameter, fmt::format(
+ source->WriteNumeric(Numerics::InvalidModeParameter(channel, this, parameter, FMT::format(
"The line number you specified is too big. Maximum allowed is {}.", ms.MaxLines)));
return false;
}
if (ms.MaxSecs && settings.Seconds > ms.MaxSecs)
{
- source->WriteNumeric(Numerics::InvalidModeParameter(channel, this, parameter, fmt::format(
+ source->WriteNumeric(Numerics::InvalidModeParameter(channel, this, parameter, FMT::format(
"The seconds you specified are too big. Maximum allowed is {}.", ms.MaxSecs)));
return false;
}
@@ -390,7 +390,7 @@ private:
source->WriteNumeric(Numerics::InvalidModeParameter(channel, this, parameter,
"The server administrator has disabled matching on edit distance."));
else
- source->WriteNumeric(Numerics::InvalidModeParameter(channel, this, parameter, fmt::format(
+ source->WriteNumeric(Numerics::InvalidModeParameter(channel, this, parameter, FMT::format(
"The distance you specified is too big. Maximum allowed is {}.", ms.MaxDiff)));
return false;
}
@@ -401,7 +401,7 @@ private:
source->WriteNumeric(Numerics::InvalidModeParameter(channel, this, parameter,
"The server administrator has disabled backlog matching."));
else
- source->WriteNumeric(Numerics::InvalidModeParameter(channel, this, parameter, fmt::format(
+ source->WriteNumeric(Numerics::InvalidModeParameter(channel, this, parameter, FMT::format(
"The backlog you specified is too big. Maximum allowed is {}.", ms.MaxBacklog)));
return false;
}