aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_repeat.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2024-06-07 14:12:59 +0100
committerGravatar Sadie Powell2024-06-07 14:12:59 +0100
commitb918f4906a21d6f37de5c7d503c8da1770df966d (patch)
treecb061bf6249cc9a0ce86fcc646a157edd058db76 /src/modules/m_repeat.cpp
parentMerge branch 'insp4' into master. (diff)
Always use fmtlib directly.
Diffstat (limited to 'src/modules/m_repeat.cpp')
-rw-r--r--src/modules/m_repeat.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/modules/m_repeat.cpp b/src/modules/m_repeat.cpp
index 43c7424ff..541f61696 100644
--- a/src/modules/m_repeat.cpp
+++ b/src/modules/m_repeat.cpp
@@ -372,14 +372,14 @@ private:
{
if (ms.MaxLines && settings.Lines > ms.MaxLines)
{
- source->WriteNumeric(Numerics::InvalidModeParameter(channel, this, parameter, INSP_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, INSP_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, INSP_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, INSP_FORMAT(
+ source->WriteNumeric(Numerics::InvalidModeParameter(channel, this, parameter, fmt::format(
"The backlog you specified is too big. Maximum allowed is {}.", ms.MaxBacklog)));
return false;
}
@@ -525,7 +525,7 @@ public:
data["max-diff"] = ConvToStr(rm.ms.MaxDiff);
data["max-backlog"] = ConvToStr(rm.ms.MaxBacklog);
- compatdata = INSP_FORMAT("{}:{}:{}:{}{}", rm.ms.Extended ? "extended:" : "",
+ compatdata = fmt::format("{}:{}:{}:{}{}", rm.ms.Extended ? "extended:" : "",
rm.ms.MaxLines, rm.ms.MaxSecs, rm.ms.MaxDiff, rm.ms.MaxBacklog);
}
};