🐛 Add DEBUG log pentru IsHideOper verification
Adăugat log temporar pentru a vedea în runtime: - SeeOper() value - IsHideOper() value - IsAdmin() value Log va apărea în /home/ircd/ircd/log/ircd.log când cineva face /whois pe un oper. Scopul: A determina de ce IsHideOper() returnează FALSE chiar dacă hide_oper = yes în config
This commit is contained in:
parent
6cda4aba28
commit
0cede2f442
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Reference in New Issue