aboutsummaryrefslogtreecommitdiff
path: root/include/snomasks.h
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 /include/snomasks.h
parentReplace VAFORMAT/InspIRCd::Format/... with fmt::sprintf. (diff)
Convert WriteToSnoMask/WriteGlobalSno to use fmtlib format strings.
Diffstat (limited to 'include/snomasks.h')
-rw-r--r--include/snomasks.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/snomasks.h b/include/snomasks.h
index db8dbf59e..c9f8feb3f 100644
--- a/include/snomasks.h
+++ b/include/snomasks.h
@@ -104,7 +104,7 @@ public:
template <typename... Args>
void WriteToSnoMask(char letter, const char* text, Args&&... args)
{
- WriteToSnoMask(letter, fmt::sprintf(text, std::forward<Args>(args)...));
+ WriteToSnoMask(letter, fmt::format(text, std::forward<Args>(args)...));
}
/** Write to all users with a given snomask (sent globally)
@@ -121,7 +121,7 @@ public:
template <typename... Args>
void WriteGlobalSno(char letter, const char* text, Args&&... args)
{
- WriteGlobalSno(letter, fmt::sprintf(text, std::forward<Args>(args)...));
+ WriteGlobalSno(letter, fmt::format(text, std::forward<Args>(args)...));
}
/** Called once per 5 seconds from the mainloop, this flushes any cached