diff options
| author | 2024-08-22 10:26:43 +0100 | |
|---|---|---|
| committer | 2024-08-22 11:12:52 +0100 | |
| commit | 6b123d4bc61c2db8e379dd5e681834c4053e661d (patch) | |
| tree | 77621bb30f54b0c444e31a78b2c5c9a67955b723 /modules/helpmode.cpp | |
| parent | Merge branch 'insp4' into master. (diff) | |
Use C++20 <format> instead of fmtlib when available.
Diffstat (limited to 'modules/helpmode.cpp')
| -rw-r--r-- | modules/helpmode.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/helpmode.cpp b/modules/helpmode.cpp index b548b4995..358cba400 100644 --- a/modules/helpmode.cpp +++ b/modules/helpmode.cpp @@ -94,7 +94,7 @@ public: const std::string awayperiod = Duration::ToString(ServerInstance->Time() - helper->away->time); const std::string awaytime = Time::ToString(helper->away->time); - extra = fmt::format(": away for {} [since {}] ({})", awayperiod, awaytime, helper->away->message); + extra = FMT::format(": away for {} [since {}] ({})", awayperiod, awaytime, helper->away->message); } auto* lhelper = IS_LOCAL(helper); @@ -103,10 +103,10 @@ public: const std::string idleperiod = Duration::ToString(ServerInstance->Time() - lhelper->idle_lastmsg); const std::string idletime = Time::ToString(lhelper->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{} ({}){}", helper->nick, markhelpers ? " [helper]" : "", + stats.AddGenericRow(FMT::format("\x02{}\x02{} ({}){}", helper->nick, markhelpers ? " [helper]" : "", helper->GetUserHost(), extra)); } |
