diff options
| author | 2025-03-22 14:29:12 +0000 | |
|---|---|---|
| committer | 2025-03-22 14:37:15 +0000 | |
| commit | 30d0f2827215f635f4cdefed8300c1c085ae953c (patch) | |
| tree | 7fc4837accfb8d7bed95449eeb816e84bfa87ea6 /modules/helpmode.cpp | |
| parent | Allow reloading the geolocation database with a module rehash. (diff) | |
| parent | Allow using the long duration format in the xline message. (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 1241b17f0..5b47b1387 100644 --- a/modules/helpmode.cpp +++ b/modules/helpmode.cpp @@ -102,7 +102,7 @@ public: std::string extra; if (helper->IsAway()) { - const std::string awayperiod = Duration::ToHuman(ServerInstance->Time() - helper->away->time, true); + const std::string awayperiod = Duration::ToLongString(ServerInstance->Time() - helper->away->time, true); const std::string awaytime = Time::ToString(helper->away->time); extra = FMT::format(": away for {} [since {}] ({})", awayperiod, awaytime, helper->away->message); @@ -111,7 +111,7 @@ public: auto* lhelper = IS_LOCAL(helper); if (lhelper) { - const std::string idleperiod = Duration::ToHuman(ServerInstance->Time() - lhelper->idle_lastmsg, true); + const std::string idleperiod = Duration::ToLongString(ServerInstance->Time() - lhelper->idle_lastmsg, true); const std::string idletime = Time::ToString(lhelper->idle_lastmsg); extra += FMT::format("{} idle for {} [since {}]", extra.empty() ? ':' : ',', idleperiod, idletime); |
