ChanServ: add SYNC as an alias for ENFORCE
All checks were successful
CI / check (push) Successful in 3m33s
All checks were successful
CI / check (push) Successful in 3m33s
This commit is contained in:
parent
961dc870da
commit
cd6d8b1b93
2 changed files with 8 additions and 2 deletions
|
|
@ -3998,6 +3998,9 @@
|
|||
let out = to_cs(&mut e, "000AAAAAB", "ENFORCE #c");
|
||||
assert!(out.iter().any(|a| matches!(a, NetAction::ChannelMode { modes, .. } if modes == "+o 000AAAAAB")), "{out:?}");
|
||||
assert!(out.iter().any(|a| matches!(a, NetAction::Kick { uid, .. } if uid == "000AAAAAC")), "{out:?}");
|
||||
// SYNC is an alias for ENFORCE — same re-apply of access modes.
|
||||
let out = to_cs(&mut e, "000AAAAAB", "SYNC #c");
|
||||
assert!(out.iter().any(|a| matches!(a, NetAction::ChannelMode { modes, .. } if modes == "+o 000AAAAAB")), "sync alias: {out:?}");
|
||||
|
||||
// GETKEY: reflects a tracked key change.
|
||||
e.handle(NetEvent::ChannelKey { channel: "#c".into(), key: Some("s3cret".into()) });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue