diff options
| author | 2021-04-27 10:19:35 +0100 | |
|---|---|---|
| committer | 2021-04-27 10:37:04 +0100 | |
| commit | 8526836cf598b49de6fe8e1cef7a169d3de481f8 (patch) | |
| tree | f9ae452b867f69c6e09913db2dd84ae3fdaba7e3 /src/modules/m_hideoper.cpp | |
| parent | Use parameter pack expansion instead of recursive calls. (diff) | |
| parent | Fix SendNoticeInternal not having a NULL command variant. (diff) | |
Merge branch 'insp3' into master.
Diffstat (limited to 'src/modules/m_hideoper.cpp')
| -rw-r--r-- | src/modules/m_hideoper.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/modules/m_hideoper.cpp b/src/modules/m_hideoper.cpp index 4afc8fea0..5d63e14d1 100644 --- a/src/modules/m_hideoper.cpp +++ b/src/modules/m_hideoper.cpp @@ -153,8 +153,9 @@ class ModuleHideOper if (!oper->server->IsService() && (stats.GetSource()->IsOper() || !oper->IsModeSet(hm))) { LocalUser* lu = IS_LOCAL(oper); - stats.AddRow(249, oper->nick + " (" + oper->ident + "@" + oper->GetDisplayedHost() + ") Idle: " + - (lu ? ConvToStr(ServerInstance->Time() - lu->idle_lastmsg) + " secs" : "unavailable")); + const std::string idle = lu ? InspIRCd::DurationString(ServerInstance->Time() - lu->idle_lastmsg) : "unavailable"; + stats.AddRow(249, InspIRCd::Format("%s (%s@%s) Idle: %s", oper->nick.c_str(), + oper->ident.c_str(), oper->GetDisplayedHost().c_str(), idle.c_str())); count++; } } |
