aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree/addline.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/modules/m_spanningtree/addline.cpp
parentReplace VAFORMAT/InspIRCd::Format/... with fmt::sprintf. (diff)
Convert WriteToSnoMask/WriteGlobalSno to use fmtlib format strings.
Diffstat (limited to 'src/modules/m_spanningtree/addline.cpp')
-rw-r--r--src/modules/m_spanningtree/addline.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/modules/m_spanningtree/addline.cpp b/src/modules/m_spanningtree/addline.cpp
index 92598fb69..0e8e8ab2d 100644
--- a/src/modules/m_spanningtree/addline.cpp
+++ b/src/modules/m_spanningtree/addline.cpp
@@ -39,7 +39,7 @@ CmdResult CommandAddLine::Handle(User* usr, Params& params)
if (!xlf)
{
- ServerInstance->SNO.WriteToSnoMask('x', "%s sent me an unknown ADDLINE type (%s).", setter.c_str(), params[0].c_str());
+ ServerInstance->SNO.WriteToSnoMask('x', "{} sent me an unknown ADDLINE type ({}).", setter, params[0]);
return CmdResult::FAILURE;
}
@@ -50,7 +50,7 @@ CmdResult CommandAddLine::Handle(User* usr, Params& params)
}
catch (const ModuleException& e)
{
- ServerInstance->SNO.WriteToSnoMask('x', "Unable to ADDLINE type %s from %s: %s", params[0].c_str(), setter.c_str(), e.GetReason().c_str());
+ ServerInstance->SNO.WriteToSnoMask('x', "Unable to ADDLINE type {} from {}: {}", params[0], setter, e.GetReason());
return CmdResult::FAILURE;
}
xl->SetCreateTime(ServerCommand::ExtractTS(params[3]));
@@ -58,16 +58,16 @@ CmdResult CommandAddLine::Handle(User* usr, Params& params)
{
if (xl->duration)
{
- ServerInstance->SNO.WriteToSnoMask('X', "%s added a timed %s%s on %s, expires in %s (on %s): %s",
- setter.c_str(), params[0].c_str(), params[0].length() == 1 ? "-line" : "",
- params[1].c_str(), Duration::ToString(xl->duration).c_str(),
- InspIRCd::TimeString(xl->expiry).c_str(), params[5].c_str());
+ ServerInstance->SNO.WriteToSnoMask('X', "{} added a timed {}{} on {}, expires in {} (on {}): {}",
+ setter, params[0], params[0].length() == 1 ? "-line" : "",
+ params[1], Duration::ToString(xl->duration),
+ InspIRCd::TimeString(xl->expiry), params[5]);
}
else
{
- ServerInstance->SNO.WriteToSnoMask('X', "%s added a permanent %s%s on %s: %s",
- setter.c_str(), params[0].c_str(), params[0].length() == 1 ? "-line" : "",
- params[1].c_str(), params[5].c_str());
+ ServerInstance->SNO.WriteToSnoMask('X', "{} added a permanent {}{} on {}: {}",
+ setter, params[0], params[0].length() == 1 ? "-line" : "",
+ params[1], params[5]);
}
TreeServer* remoteserver = TreeServer::Get(usr);