diff options
| author | 2023-01-23 11:09:17 +0000 | |
|---|---|---|
| committer | 2023-01-23 13:07:53 +0000 | |
| commit | 9db9d5abe4abd975cd8725283f2efcd4bcae5f8e (patch) | |
| tree | 8ba590ee769bdbe5338cfcfecc68a395386c3425 /include/snomasks.h | |
| parent | Replace 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.h | 4 |
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 |
