aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_helpmode.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2024-06-07 14:12:59 +0100
committerGravatar Sadie Powell2024-06-07 14:12:59 +0100
commitb918f4906a21d6f37de5c7d503c8da1770df966d (patch)
treecb061bf6249cc9a0ce86fcc646a157edd058db76 /src/modules/m_helpmode.cpp
parentMerge branch 'insp4' into master. (diff)
Always use fmtlib directly.
Diffstat (limited to 'src/modules/m_helpmode.cpp')
-rw-r--r--src/modules/m_helpmode.cpp6
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));
}