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
|
|
@ -295,6 +295,7 @@ pub struct ChannelView {
|
|||
pub signkick: bool,
|
||||
pub private: bool,
|
||||
pub peace: bool,
|
||||
pub secureops: bool,
|
||||
}
|
||||
|
||||
// A single ChanServ SET option, named for the typed `set_channel_setting` call.
|
||||
|
|
@ -303,6 +304,7 @@ pub enum ChanSetting {
|
|||
SignKick,
|
||||
Private,
|
||||
Peace,
|
||||
SecureOps,
|
||||
}
|
||||
|
||||
impl ChannelView {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue