From b918f4906a21d6f37de5c7d503c8da1770df966d Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Fri, 7 Jun 2024 14:12:59 +0100 Subject: Always use fmtlib directly. --- src/modules/m_hideoper.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/modules/m_hideoper.cpp') diff --git a/src/modules/m_hideoper.cpp b/src/modules/m_hideoper.cpp index af9500563..80e25be24 100644 --- a/src/modules/m_hideoper.cpp +++ b/src/modules/m_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 = INSP_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 += 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 ({}){}", 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(INSP_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; } }; -- cgit v1.3.1-10-gc9f91