From 31c446201bf1b2b14dde2770e2006712438589e7 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 18 Mar 2025 13:57:00 +0000 Subject: Rename ToHuman to ToLongString. This name is used by functions in too many places already. --- src/modules/m_helpmode.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/m_helpmode.cpp') diff --git a/src/modules/m_helpmode.cpp b/src/modules/m_helpmode.cpp index 7083aec48..47bacb311 100644 --- a/src/modules/m_helpmode.cpp +++ b/src/modules/m_helpmode.cpp @@ -102,7 +102,7 @@ public: std::string extra; if (helper->IsAway()) { - const std::string awayperiod = Duration::ToHuman(ServerInstance->Time() - helper->away->time, true); + const std::string awayperiod = Duration::ToLongString(ServerInstance->Time() - helper->away->time, true); const std::string awaytime = Time::ToString(helper->away->time); extra = INSP_FORMAT(": away for {} [since {}] ({})", awayperiod, awaytime, helper->away->message); @@ -111,7 +111,7 @@ public: auto* lhelper = IS_LOCAL(helper); if (lhelper) { - const std::string idleperiod = Duration::ToHuman(ServerInstance->Time() - lhelper->idle_lastmsg, true); + const std::string idleperiod = Duration::ToLongString(ServerInstance->Time() - lhelper->idle_lastmsg, true); const std::string idletime = Time::ToString(lhelper->idle_lastmsg); extra += INSP_FORMAT("{} idle for {} [since {}]", extra.empty() ? ':' : ',', idleperiod, idletime); -- cgit v1.3.1-10-gc9f91