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/repeat.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'modules/repeat.cpp') 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; } -- cgit v1.3.1-10-gc9f91