From fe4c512839f9f613fc5098e5a9d8c9a402e60aa0 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Wed, 10 May 2023 11:57:48 +0100 Subject: Rename duration to timeutils and relocate InspIRCd::TimeString. --- src/modules/m_helpmode.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/modules/m_helpmode.cpp') diff --git a/src/modules/m_helpmode.cpp b/src/modules/m_helpmode.cpp index d8276dbe1..5ae234777 100644 --- a/src/modules/m_helpmode.cpp +++ b/src/modules/m_helpmode.cpp @@ -18,9 +18,9 @@ #include "inspircd.h" -#include "duration.h" #include "modules/stats.h" #include "modules/whois.h" +#include "timeutils.h" class HelpOp final : public SimpleUserMode @@ -92,7 +92,7 @@ public: if (helper->IsAway()) { const std::string awayperiod = Duration::ToString(ServerInstance->Time() - helper->awaytime); - const std::string awaytime = InspIRCd::TimeString(helper->awaytime); + const std::string awaytime = Time::ToString(helper->awaytime); extra = INSP_FORMAT(": away for {} [since {}] ({})", awayperiod, awaytime, helper->awaymsg); } @@ -101,7 +101,7 @@ public: if (lhelper) { const std::string idleperiod = Duration::ToString(ServerInstance->Time() - lhelper->idle_lastmsg); - const std::string idletime = InspIRCd::TimeString(lhelper->idle_lastmsg); + 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