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_hideoper.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_hideoper.cpp')
| -rw-r--r-- | src/modules/m_hideoper.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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); } |
