From 9db9d5abe4abd975cd8725283f2efcd4bcae5f8e Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Mon, 23 Jan 2023 11:09:17 +0000 Subject: Convert WriteToSnoMask/WriteGlobalSno to use fmtlib format strings. --- include/snomasks.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/snomasks.h') 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 void WriteToSnoMask(char letter, const char* text, Args&&... args) { - WriteToSnoMask(letter, fmt::sprintf(text, std::forward(args)...)); + WriteToSnoMask(letter, fmt::format(text, std::forward(args)...)); } /** Write to all users with a given snomask (sent globally) @@ -121,7 +121,7 @@ public: template void WriteGlobalSno(char letter, const char* text, Args&&... args) { - WriteGlobalSno(letter, fmt::sprintf(text, std::forward(args)...)); + WriteGlobalSno(letter, fmt::format(text, std::forward(args)...)); } /** Called once per 5 seconds from the mainloop, this flushes any cached -- cgit v1.3.1-10-gc9f91