diff options
| author | 2023-05-10 11:57:48 +0100 | |
|---|---|---|
| committer | 2023-05-10 11:57:48 +0100 | |
| commit | fe4c512839f9f613fc5098e5a9d8c9a402e60aa0 (patch) | |
| tree | 8bf01388c2f66ebfaaa8efd2f47154958ce0bbae /src/modules/m_helpmode.cpp | |
| parent | Show more details about unactivated/expired client certificates. (diff) | |
Rename duration to timeutils and relocate InspIRCd::TimeString.
Diffstat (limited to 'src/modules/m_helpmode.cpp')
| -rw-r--r-- | src/modules/m_helpmode.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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); } |
