From 333e28b2e3a40f11a63a16b64a52cfa2b7c69134 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sun, 4 Jun 2023 12:24:49 +0100 Subject: [PATCH] Fix exposing oper hosts in `/STATS P`. --- src/coremods/core_oper/core_oper.cpp | 2 +- src/modules/m_helpmode.cpp | 2 +- src/modules/m_hideoper.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/coremods/core_oper/core_oper.cpp b/src/coremods/core_oper/core_oper.cpp index 92a570e95..d06fec1c2 100644 --- a/src/coremods/core_oper/core_oper.cpp +++ b/src/coremods/core_oper/core_oper.cpp @@ -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. diff --git a/src/modules/m_helpmode.cpp b/src/modules/m_helpmode.cpp index 5ae234777..9d783629a 100644 --- a/src/modules/m_helpmode.cpp +++ b/src/modules/m_helpmode.cpp @@ -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. diff --git a/src/modules/m_hideoper.cpp b/src/modules/m_hideoper.cpp index 9a5621dd1..83664ccec 100644 --- a/src/modules/m_hideoper.cpp +++ b/src/modules/m_hideoper.cpp @@ -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.