diff options
| author | 2024-06-07 14:12:59 +0100 | |
|---|---|---|
| committer | 2024-06-07 14:12:59 +0100 | |
| commit | b918f4906a21d6f37de5c7d503c8da1770df966d (patch) | |
| tree | cb061bf6249cc9a0ce86fcc646a157edd058db76 /src/modules/m_helpmode.cpp | |
| parent | Merge branch 'insp4' into master. (diff) | |
Always use fmtlib directly.
Diffstat (limited to 'src/modules/m_helpmode.cpp')
| -rw-r--r-- | src/modules/m_helpmode.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_helpmode.cpp b/src/modules/m_helpmode.cpp index e72e533d8..b548b4995 100644 --- a/src/modules/m_helpmode.cpp +++ b/src/modules/m_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 = INSP_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 += INSP_FORMAT("{} idle for {} [since {}]", extra.empty() ? ':' : ',', idleperiod, idletime); + extra += fmt::format("{} idle for {} [since {}]", extra.empty() ? ':' : ',', idleperiod, idletime); } - stats.AddGenericRow(INSP_FORMAT("\x02{}\x02{} ({}){}", helper->nick, markhelpers ? " [helper]" : "", + stats.AddGenericRow(fmt::format("\x02{}\x02{} ({}){}", helper->nick, markhelpers ? " [helper]" : "", helper->GetUserHost(), extra)); } |
