From 0cede2f442f39ee05743344c40bfe5274e36e046 Mon Sep 17 00:00:00 2001 From: mihaiitdata Date: Mon, 23 Feb 2026 22:45:10 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Add=20DEBUG=20log=20pentru=20IsH?= =?UTF-8?q?ideOper=20verification=20Ad=C4=83ugat=20log=20temporar=20pentru?= =?UTF-8?q?=20a=20vedea=20=C3=AEn=20runtime:=20-=20SeeOper()=20value=20-?= =?UTF-8?q?=20IsHideOper()=20value=20-=20IsAdmin()=20value=20Log=20va=20ap?= =?UTF-8?q?=C4=83rea=20=C3=AEn=20/home/ircd/ircd/log/ircd.log=20c=C3=A2nd?= =?UTF-8?q?=20cineva=20face=20/whois=20pe=20un=20oper.=20Scopul:=20A=20det?= =?UTF-8?q?ermina=20de=20ce=20IsHideOper()=20returneaz=C4=83=20FALSE=20chi?= =?UTF-8?q?ar=20dac=C4=83=20hide=5Foper=20=3D=20yes=20=C3=AEn=20config?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ircd/m_whois.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ircd/m_whois.c b/ircd/m_whois.c index d30fe7a..a05feb1 100644 --- a/ircd/m_whois.c +++ b/ircd/m_whois.c @@ -256,6 +256,12 @@ static void do_whois(struct Client* sptr, struct Client *acptr, int parc) * Pentru stealth oper (hide_oper = yes), NU afișa mesajul * Permite investigații undercover fără să fie detectat */ + /* DEBUG: Log pentru verificare IsHideOper */ + if (IsAnOper(acptr)) { + log_write(LS_DEBUG, L_INFO, 0, "WHOIS DEBUG: %s - SeeOper=%d IsHideOper=%d IsAdmin=%d", + name, SeeOper(sptr,acptr), IsHideOper(acptr), IsAdmin(acptr)); + } + if (SeeOper(sptr,acptr) && !IsHideOper(acptr)) { if (IsAdmin(acptr)) send_reply(sptr, RPL_WHOISOPERATOR, name, feature_str(FEAT_WHOIS_ADMIN));