Implementare cerinte operator: +W automat, whois notices, host hiding automat pentru clienti

This commit is contained in:
mihaiitdata 2026-02-13 13:36:55 +02:00
parent 6ee149e53d
commit 2fdc9ad105
2 changed files with 3 additions and 2 deletions

View File

@ -730,6 +730,7 @@ features {
"CHECK" = "TRUE";
"CHECK_EXTENDED" = "TRUE";
"MAX_CHECK_OUTPUT" = "1000";
"OPER_WHOIS_PARANOIA" = "TRUE";
# Admin commands
"SETHOST" = "TRUE";

View File

@ -166,9 +166,9 @@ void do_oper(struct Client* cptr, struct Client* sptr, struct ConfItem* aconf)
client_send_privs(&me, sptr, sptr);
if (HasPriv(sptr, PRIV_PROPAGATE)) {
modes = (HasPriv(sptr, PRIV_ADMIN) ? "aowsg" : "owsg");
modes = (HasPriv(sptr, PRIV_ADMIN) ? "aowsgW" : "owsgW");
} else {
modes = "Owsg";
modes = "OwsgW";
}
sendcmdto_one(&me, CMD_MODE, sptr, "%s %s", cli_name(sptr), modes);