botserv: bots join +ao (protected admin + op), keeping op alongside protect
All checks were successful
CI / check (push) Successful in 3m53s
All checks were successful
CI / check (push) Successful in 3m53s
This commit is contained in:
parent
73467b91ca
commit
f2ba876ce4
4 changed files with 12 additions and 11 deletions
|
|
@ -2217,9 +2217,9 @@
|
|||
ns(&mut e, "000AAAAAC", "IDENTIFY password1");
|
||||
bs(&mut e, "000AAAAAC", "BOT ADD Bendy bot serv.host Helper"); // goes live
|
||||
|
||||
// The founder assigns the bot: it joins the channel as a protected admin (+a).
|
||||
// The founder assigns the bot: it joins as a protected admin + op (+ao).
|
||||
let out = bs(&mut e, "000AAAAAB", "ASSIGN #c Bendy");
|
||||
assert!(out.iter().any(|a| matches!(a, NetAction::ServiceJoin { channel, modes, .. } if channel == "#c" && modes == "a")), "joins +a on assign: {out:?}");
|
||||
assert!(out.iter().any(|a| matches!(a, NetAction::ServiceJoin { channel, modes, .. } if channel == "#c" && modes == "ao")), "joins +ao on assign: {out:?}");
|
||||
// Unassigning parts it.
|
||||
let out = bs(&mut e, "000AAAAAB", "UNASSIGN #c");
|
||||
assert!(out.iter().any(|a| matches!(a, NetAction::ServicePart { channel, .. } if channel == "#c")), "parts on unassign: {out:?}");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue