config: >rehash command to reload rustbot.conf live (channels/nick/prefix/verbose/modules) without a restart
All checks were successful
ci / check (push) Successful in 47s

This commit is contained in:
Jean Chevronnet 2026-07-30 01:40:18 +00:00
parent 6af92c1217
commit 3c2154bbc1
No known key found for this signature in database
GPG key ID: 439666D63A9477E4
7 changed files with 226 additions and 20 deletions

View file

@ -48,3 +48,13 @@ fn comments_and_blanks_are_ignored() {
assert_eq!(cfgs.len(), 1);
assert_eq!(cfgs[0].server, "irc.tchatou.fr");
}
#[test]
fn admin_list_is_parsed_and_inherited() {
let cfgs = parse_str("admin = reverse, alice\nwebchat = https://w/\n[net]\nserver = x\n");
assert_eq!(
cfgs[0].admin,
vec!["reverse".to_string(), "alice".to_string()]
);
assert_eq!(cfgs[0].webchat, "https://w/");
}