BotServ: add BOTLIST and AUTOASSIGN default bot
All checks were successful
CI / check (push) Successful in 3m33s

This commit is contained in:
Jean Chevronnet 2026-07-16 00:57:06 +00:00
parent cd6d8b1b93
commit dd43b9a331
No known key found for this signature in database
12 changed files with 162 additions and 0 deletions

View file

@ -1119,6 +1119,10 @@ fn audit_summary(event: &db::Event) -> Option<String> {
ChannelBotUnassigned { channel } => format!("removed the bot from \x02{channel}\x02"),
BotAdded(b) => format!("added bot \x02{}\x02", b.nick),
BotRemoved { nick } => format!("removed bot \x02{nick}\x02"),
DefaultBotSet { bot } => match bot {
Some(b) => format!("set the auto-assign bot to \x02{b}\x02"),
None => "cleared the auto-assign bot".to_string(),
},
VhostOfferAdded { host } => format!("added vhost offer \x02{host}\x02"),
VhostOfferRemoved { host } => format!("removed vhost offer \x02{host}\x02"),
VhostForbidAdded { pattern } => format!("forbade vhost pattern \x02{pattern}\x02"),