aboutsummaryrefslogtreecommitdiff
path: root/src/xline.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2023-01-23 11:09:17 +0000
committerGravatar Sadie Powell2023-01-23 13:07:53 +0000
commit9db9d5abe4abd975cd8725283f2efcd4bcae5f8e (patch)
tree8ba590ee769bdbe5338cfcfecc68a395386c3425 /src/xline.cpp
parentReplace VAFORMAT/InspIRCd::Format/... with fmt::sprintf. (diff)
Convert WriteToSnoMask/WriteGlobalSno to use fmtlib format strings.
Diffstat (limited to 'src/xline.cpp')
-rw-r--r--src/xline.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/xline.cpp b/src/xline.cpp
index 9b9214c7d..10ca2b95f 100644
--- a/src/xline.cpp
+++ b/src/xline.cpp
@@ -705,8 +705,9 @@ void ELine::OnAdd()
void XLine::DisplayExpiry()
{
bool onechar = (type.length() == 1);
- ServerInstance->SNO.WriteToSnoMask('x', "Removing an expired %s%s on %s (set by %s %s ago): %s",
- type.c_str(), (onechar ? "-line" : ""), Displayable().c_str(), source.c_str(), Duration::ToString(ServerInstance->Time() - set_time).c_str(), reason.c_str());
+ ServerInstance->SNO.WriteToSnoMask('x', "Removing an expired {}{} on {} (set by {} {} ago): {}",
+ type, (onechar ? "-line" : ""), Displayable(), source,
+ Duration::ToString(ServerInstance->Time() - set_time), reason);
}
const std::string& ELine::Displayable()