mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 02:59:01 -04:00
Update hideoper for the /STATS P change in the previous commit.
This commit is contained in:
parent
6b188f1d4e
commit
033127f583
@ -160,8 +160,9 @@ class ModuleHideOper
|
||||
if (!oper->server->IsULine() && (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++;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user