NickServ: add SET AUTOOP per-account auto-op opt-out
A user with SET AUTOOP OFF is never auto-opped on join, even where they hold channel access — they op themselves via ChanServ UP. Stored inverted (no_autoop) so the default stays auto-op. Join gates on both the channel setting and the account preference; either can opt out.
This commit is contained in:
parent
0027decdb7
commit
87e21ff85f
11 changed files with 111 additions and 11 deletions
|
|
@ -128,6 +128,7 @@ fn to_wire(entry: &LogEntry) -> Option<ReplicationEvent> {
|
|||
| Event::CertRemoved { .. }
|
||||
| Event::AccountPasswordSet { .. }
|
||||
| Event::AccountGreetSet { .. }
|
||||
| Event::AccountAutoOpSet { .. }
|
||||
| Event::AjoinAdded { .. }
|
||||
| Event::AjoinRemoved { .. }
|
||||
| Event::VhostSet { .. }
|
||||
|
|
@ -461,7 +462,7 @@ mod tests {
|
|||
memo_ignore: vec![],
|
||||
memo_notify: true,
|
||||
memo_limit: None,
|
||||
greet: String::new(),
|
||||
greet: String::new(), no_autoop: false,
|
||||
vhost: None,
|
||||
vhost_request: None,
|
||||
last_seen: 111,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue