diff options
| author | 2025-03-03 14:58:58 +0000 | |
|---|---|---|
| committer | 2025-03-03 14:58:58 +0000 | |
| commit | d4d2293244c1845d2ca44708e82cad0bd38741e5 (patch) | |
| tree | e6c03e062dd5b2dc13f215169ab11455a2b89d88 /modules/helpmode.cpp | |
| parent | Merge branch 'insp4' into master. (diff) | |
| parent | Use Duration::ToHuman instead of seconds in various messages. (diff) | |
Merge branch 'insp4' into master.
Diffstat (limited to 'modules/helpmode.cpp')
| -rw-r--r-- | modules/helpmode.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/helpmode.cpp b/modules/helpmode.cpp index a4103f730..96304b477 100644 --- a/modules/helpmode.cpp +++ b/modules/helpmode.cpp @@ -91,7 +91,7 @@ public: std::string extra; if (helper->IsAway()) { - const std::string awayperiod = Duration::ToString(ServerInstance->Time() - helper->away->time); + const std::string awayperiod = Duration::ToHuman(ServerInstance->Time() - helper->away->time); const std::string awaytime = Time::ToString(helper->away->time); extra = FMT::format(": away for {} [since {}] ({})", awayperiod, awaytime, helper->away->message); @@ -100,7 +100,7 @@ public: auto* lhelper = IS_LOCAL(helper); if (lhelper) { - const std::string idleperiod = Duration::ToString(ServerInstance->Time() - lhelper->idle_lastmsg); + const std::string idleperiod = Duration::ToHuman(ServerInstance->Time() - lhelper->idle_lastmsg); const std::string idletime = Time::ToString(lhelper->idle_lastmsg); extra += FMT::format("{} idle for {} [since {}]", extra.empty() ? ':' : ',', idleperiod, idletime); |
