aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_check.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2023-01-23 07:42:07 +0000
committerGravatar Sadie Powell2023-01-23 13:07:53 +0000
commit5c4badf8ea3ba775854f0d26d3f2e0e119584faa (patch)
tree05dd2c5c545f12f71866be6422146477ddd30e3f /src/modules/m_check.cpp
parentVendor the fmtlib library. (diff)
downloadinspircd++-5c4badf8ea3ba775854f0d26d3f2e0e119584faa.tar.gz
inspircd++-5c4badf8ea3ba775854f0d26d3f2e0e119584faa.tar.bz2
inspircd++-5c4badf8ea3ba775854f0d26d3f2e0e119584faa.zip
Replace InspIRCd::Format with fmt::format.
Diffstat (limited to 'src/modules/m_check.cpp')
-rw-r--r--src/modules/m_check.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/modules/m_check.cpp b/src/modules/m_check.cpp
index bc7f1c253..110621510 100644
--- a/src/modules/m_check.cpp
+++ b/src/modules/m_check.cpp
@@ -243,9 +243,8 @@ public:
* Unlike Asuka, I define a clone as coming from the same host. --w00t
*/
const UserManager::CloneCounts& clonecount = ServerInstance->Users.GetCloneCounts(u);
- context.Write("member", InspIRCd::Format("%u %s%s (%s\x0F)", clonecount.global,
- memb->GetAllPrefixChars().c_str(), u->GetFullHost().c_str(),
- u->GetRealName().c_str()));
+ context.Write("member", INSP_FORMAT("{} {}{} ({}\x0F)", clonecount.global, memb->GetAllPrefixChars(),
+ u->GetFullHost(), u->GetRealName()));
}
for (auto* lm : ServerInstance->Modes.GetListModes())
@@ -285,9 +284,8 @@ public:
if (!matches.empty())
{
const std::string whatmatch = stdalgo::string::join(matches, ',');
- context.Write("match", InspIRCd::Format("%ld %s %s %s %s %s %s :%s", ++x, whatmatch.c_str(),
- u->nick.c_str(), u->ident.c_str(), u->GetRealHost().c_str(), u->GetDisplayedHost().c_str(),
- u->GetIPString().c_str(), u->GetRealName().c_str()));
+ context.Write("match", INSP_FORMAT("{} {} {} {} {} {} {} :{}", ++x, whatmatch, u->nick, u->ident,
+ u->GetRealHost(), u->GetDisplayedHost(), u->GetIPString(), u->GetRealName()));
matches.clear();
}
}