diff options
| author | 2025-03-10 19:41:57 +0000 | |
|---|---|---|
| committer | 2025-03-10 19:41:57 +0000 | |
| commit | b3f973085679009d43e1c06b9d9de0ca031474a9 (patch) | |
| tree | 057b76a3ef62a649137cf80794379fd4e34e4423 /modules/hideoper.cpp | |
| parent | Merge branch 'insp4' into master. (diff) | |
| parent | Add <helpchan> for granting privs to helpers on join. (diff) | |
Merge branch 'insp4' into master.
Diffstat (limited to 'modules/hideoper.cpp')
| -rw-r--r-- | modules/hideoper.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/hideoper.cpp b/modules/hideoper.cpp index c076dbca5..36b87a69a 100644 --- a/modules/hideoper.cpp +++ b/modules/hideoper.cpp @@ -157,7 +157,7 @@ public: std::string extra; if (oper->IsAway()) { - const std::string awayperiod = Duration::ToHuman(ServerInstance->Time() - oper->away->time); + const std::string awayperiod = Duration::ToHuman(ServerInstance->Time() - oper->away->time, true); const std::string awaytime = Time::ToString(oper->away->time); extra = FMT::format(": away for {} [since {}] ({})", awayperiod, awaytime, oper->away->message); @@ -166,7 +166,7 @@ public: auto* loper = IS_LOCAL(oper); if (loper) { - const std::string idleperiod = Duration::ToHuman(ServerInstance->Time() - loper->idle_lastmsg); + const std::string idleperiod = Duration::ToHuman(ServerInstance->Time() - loper->idle_lastmsg, true); const std::string idletime = Time::ToString(loper->idle_lastmsg); extra += FMT::format("{} idle for {} [since {}]", extra.empty() ? ':' : ',', idleperiod, idletime); |
