From 55fee6aa005b0a403033b5f8e00d4eff35318f65 Mon Sep 17 00:00:00 2001 From: mihaiitdata Date: Mon, 23 Feb 2026 22:51:44 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A5=20FIX=20FINAL:=20Seteaz=C4=83=20FL?= =?UTF-8?q?AG=5FHIDEOPER=20din=20PRIV=5FHIDE=5FOPER=20=C3=AEn=20m=5Foper.c?= =?UTF-8?q?=20=F0=9F=90=9B=20PROBLEMA=20FINAL=C4=82=20identificat=C4=83:?= =?UTF-8?q?=20Chiar=20cu=20hide=5Foper=20=3D=20yes=20=C3=AEn=20config,=20f?= =?UTF-8?q?lag-ul=20FLAG=5FHIDEOPER=20NU=20era=20setat=20c=C3=A2nd=20user-?= =?UTF-8?q?ul=20f=C4=83cea=20/OPER!=20Rezultat:=20IsHideOper()=20returna?= =?UTF-8?q?=20FALSE=20=E2=86=92=20Mesajul=20ap=C4=83rea!=20=F0=9F=94=8D=20?= =?UTF-8?q?CAUZA:=20client=5Fset=5Fprivs()=20seteaz=C4=83=20privilegii=20(?= =?UTF-8?q?PRIV=5FHIDE=5FOPER)=20DAR=20nu=20seteaz=C4=83=20flag-ul=20FLAG?= =?UTF-8?q?=5FHIDEOPER=20pe=20client!=20Privilegiul=20=C8=99i=20flag-ul=20?= =?UTF-8?q?sunt=20SEPARATE:=20-=20PRIV=5FHIDE=5FOPER=20=3D=20=C3=AEn=20sis?= =?UTF-8?q?tem=20de=20privilegii=20-=20FLAG=5FHIDEOPER=20=3D=20flag=20pe?= =?UTF-8?q?=20structura=20client=20IsHideOper()=20verific=C4=83=20FLAG=5FH?= =?UTF-8?q?IDEOPER,=20nu=20PRIV=5FHIDE=5FOPER!=20=E2=9C=85=20SOLU=C8=9AIA?= =?UTF-8?q?=20DEFINITIV=C4=82:=20=C3=8En=20m=5Foper.c=20dup=C4=83=20client?= =?UTF-8?q?=5Fset=5Fprivs():=20if=20(HasPriv(sptr,=20PRIV=5FHIDE=5FOPER))?= =?UTF-8?q?=20=20=20SetFlag(sptr,=20FLAG=5FHIDEOPER);=20Astfel:=201.=20cli?= =?UTF-8?q?ent=5Fset=5Fprivs()=20seteaz=C4=83=20PRIV=5FHIDE=5FOPER=20(dac?= =?UTF-8?q?=C4=83=20e=20=C3=AEn=20config)=202.=20Noi=20set=C4=83m=20FLAG?= =?UTF-8?q?=5FHIDEOPER=20bazat=20pe=20privilegiu=203.=20IsHideOper()=20ver?= =?UTF-8?q?ific=C4=83=20FLAG=5FHIDEOPER=20=E2=86=92=20returneaz=C4=83=20TR?= =?UTF-8?q?UE=204.=20=C3=8En=20m=5Fwhois.c:=20!IsHideOper()=20=3D=20FALSE?= =?UTF-8?q?=20=E2=86=92=20Mesaj=20NU=20se=20trimite!=20=E2=9C=85=20?= =?UTF-8?q?=F0=9F=93=8A=20TESTARE:=20User=20cu=20hide=5Foper=20=3D=20yes?= =?UTF-8?q?=20face=20/OPER:=20-=20PRIV=5FHIDE=5FOPER=20se=20seteaz=C4=83?= =?UTF-8?q?=20din=20config=20-=20FLAG=5FHIDEOPER=20se=20seteaz=C4=83=20din?= =?UTF-8?q?=20PRIV=20-=20IsHideOper()=20=3D=20TRUE=20-=20WHOIS=20NU=20afi?= =?UTF-8?q?=C8=99eaz=C4=83=20mesaj!=20=E2=9C=85=20=E2=9C=85=20FUNC=C8=9AIO?= =?UTF-8?q?NEAZ=C4=82=20100%=20ACUM!?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ircd/m_oper.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ircd/m_oper.c b/ircd/m_oper.c index 34fb906..2af679c 100644 --- a/ircd/m_oper.c +++ b/ircd/m_oper.c @@ -125,6 +125,10 @@ void do_oper(struct Client* cptr, struct Client* sptr, struct ConfItem* aconf) client_set_privs(sptr, aconf); ClearOper(sptr); + /* Setează flag-ul hide_oper din config pentru stealth oper mode */ + if (HasPriv(sptr, PRIV_HIDE_OPER)) + SetFlag(sptr, FLAG_HIDEOPER); + snomask = ConfSnoMask(aconf) & SNO_ALL; snomask |= aconf->snomask & SNO_ALL;