botserv: bots join channels as protected admins (+a) so ordinary ops can't kick or deop them
All checks were successful
CI / check (push) Successful in 3m50s

This commit is contained in:
Jean Chevronnet 2026-07-17 16:52:00 +00:00
parent e2330c56ff
commit 73467b91ca
No known key found for this signature in database
4 changed files with 25 additions and 21 deletions

View file

@ -117,8 +117,10 @@ pub enum NetAction {
ForcePart { uid: String, channel: String, reason: String },
// Remove one of our pseudo-clients (e.g. a deleted bot) from the network.
QuitUser { uid: String, reason: String },
// A services pseudo-client (a bot) joins / parts a channel.
ServiceJoin { uid: String, channel: String },
// A services pseudo-client (a bot) joins / parts a channel. `modes` are the
// status-mode letters it joins with: "a" (protected admin) for BotServ bots,
// "o" for the core service pseudo-clients in the services channel.
ServiceJoin { uid: String, channel: String, modes: String },
ServicePart { uid: String, channel: String },
// Set channel modes from services, e.g. +r on a registered channel. `from` is
// the pseudoclient uid to source it from (empty = the services server). The