Fix exposing oper hosts in /STATS P.

This commit is contained in:
Sadie Powell 2023-06-04 12:24:49 +01:00
parent 2b8a7a2db9
commit 333e28b2e3
3 changed files with 3 additions and 3 deletions

View File

@ -214,7 +214,7 @@ public:
extra += INSP_FORMAT("{} idle for {} [since {}]", extra.empty() ? ':' : ',', idleperiod, idletime);
}
stats.AddGenericRow(INSP_FORMAT("\x02{}\x02 ({}){}", oper->nick, oper->GetRealUserHost(), extra));
stats.AddGenericRow(INSP_FORMAT("\x02{}\x02 ({}){}", oper->nick, oper->GetUserHost(), extra));
}
// Sort opers alphabetically.

View File

@ -107,7 +107,7 @@ public:
}
stats.AddGenericRow(INSP_FORMAT("\x02{}\x02{} ({}){}", helper->nick, markhelpers ? " [helper]" : "",
helper->GetRealUserHost(), extra));
helper->GetUserHost(), extra));
}
// Allow the core to add normal opers.

View File

@ -172,7 +172,7 @@ public:
extra += INSP_FORMAT("{} idle for {} [since {}]", extra.empty() ? ':' : ',', idleperiod, idletime);
}
stats.AddGenericRow(INSP_FORMAT("\x02{}\x02 ({}){}", oper->nick, oper->GetRealUserHost(), extra));
stats.AddGenericRow(INSP_FORMAT("\x02{}\x02 ({}){}", oper->nick, oper->GetUserHost(), extra));
}
// Sort opers alphabetically.