chanserv: SET SECUREOPS (strip ops from users without access)
When SECUREOPS is on, a user who gains channel-operator status without op-level access is immediately deopped. Enforced in the engine's ChannelOp hook (manual FMODE +o) and the Join hook (FJOIN prefix ops), sourced from ChanServ. Same typed-settings path; shown in INFO; engine test covers on and off.
This commit is contained in:
parent
3bf6b2be77
commit
d2c6448c6b
5 changed files with 48 additions and 2 deletions
|
|
@ -105,6 +105,7 @@ impl Service for ChanServ {
|
|||
if info.signkick { opts.push("SIGNKICK"); }
|
||||
if info.private { opts.push("PRIVATE"); }
|
||||
if info.peace { opts.push("PEACE"); }
|
||||
if info.secureops { opts.push("SECUREOPS"); }
|
||||
if !opts.is_empty() {
|
||||
ctx.notice(me, from.uid, format!(" Options : {}", opts.join(", ")));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue