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
All checks were successful
ci / check (push) Successful in 47s
This commit is contained in:
parent
6af92c1217
commit
3c2154bbc1
7 changed files with 226 additions and 20 deletions
|
|
@ -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/");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue