diff options
| author | 2024-08-22 10:26:43 +0100 | |
|---|---|---|
| committer | 2024-08-22 11:12:52 +0100 | |
| commit | 6b123d4bc61c2db8e379dd5e681834c4053e661d (patch) | |
| tree | 77621bb30f54b0c444e31a78b2c5c9a67955b723 /modules/hideoper.cpp | |
| parent | Merge branch 'insp4' into master. (diff) | |
Use C++20 <format> instead of fmtlib when available.
Diffstat (limited to 'modules/hideoper.cpp')
| -rw-r--r-- | modules/hideoper.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/hideoper.cpp b/modules/hideoper.cpp index 80e25be24..8f51ddf2f 100644 --- a/modules/hideoper.cpp +++ b/modules/hideoper.cpp @@ -160,7 +160,7 @@ public: const std::string awayperiod = Duration::ToString(ServerInstance->Time() - oper->away->time); const std::string awaytime = Time::ToString(oper->away->time); - extra = fmt::format(": away for {} [since {}] ({})", awayperiod, awaytime, oper->away->message); + extra = FMT::format(": away for {} [since {}] ({})", awayperiod, awaytime, oper->away->message); } auto* loper = IS_LOCAL(oper); @@ -169,10 +169,10 @@ public: const std::string idleperiod = Duration::ToString(ServerInstance->Time() - loper->idle_lastmsg); const std::string idletime = Time::ToString(loper->idle_lastmsg); - extra += fmt::format("{} idle for {} [since {}]", extra.empty() ? ':' : ',', idleperiod, idletime); + extra += FMT::format("{} idle for {} [since {}]", extra.empty() ? ':' : ',', idleperiod, idletime); } - stats.AddGenericRow(fmt::format("\x02{}\x02 ({}){}", oper->nick, oper->GetUserHost(), extra)); + stats.AddGenericRow(FMT::format("\x02{}\x02 ({}){}", oper->nick, oper->GetUserHost(), extra)); } // Sort opers alphabetically. @@ -180,7 +180,7 @@ public: return lhs.GetParams()[1] < rhs.GetParams()[1]; }); - stats.AddGenericRow(fmt::format("{} server operator{} total", stats.GetRows().size(), stats.GetRows().size() ? "s" : "")); + stats.AddGenericRow(FMT::format("{} server operator{} total", stats.GetRows().size(), stats.GetRows().size() ? "s" : "")); return MOD_RES_DENY; } }; |
