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_hideoper.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/modules/m_hideoper.cpp') diff --git a/src/modules/m_hideoper.cpp b/src/modules/m_hideoper.cpp index 98a99812e..9a5621dd1 100644 --- a/src/modules/m_hideoper.cpp +++ b/src/modules/m_hideoper.cpp @@ -27,10 +27,10 @@ #include "inspircd.h" -#include "duration.h" #include "modules/stats.h" #include "modules/who.h" #include "modules/whois.h" +#include "timeutils.h" /** Handles user mode +H */ @@ -158,7 +158,7 @@ public: if (oper->IsAway()) { const std::string awayperiod = Duration::ToString(ServerInstance->Time() - oper->awaytime); - const std::string awaytime = InspIRCd::TimeString(oper->awaytime); + const std::string awaytime = Time::ToString(oper->awaytime); extra = INSP_FORMAT(": away for {} [since {}] ({})", awayperiod, awaytime, oper->awaymsg); } @@ -167,7 +167,7 @@ public: if (loper) { const std::string idleperiod = Duration::ToString(ServerInstance->Time() - loper->idle_lastmsg); - const std::string idletime = InspIRCd::TimeString(loper->idle_lastmsg); + const std::string idletime = Time::ToString(loper->idle_lastmsg); extra += INSP_FORMAT("{} idle for {} [since {}]", extra.empty() ? ':' : ',', idleperiod, idletime); } -- cgit v1.3.1-10-gc9f91