Add 'offline' config option to turn off autojoin
This commit is contained in:
parent
04581f9158
commit
73a0971c34
3 changed files with 9 additions and 4 deletions
|
|
@ -67,9 +67,11 @@ impl Rooms {
|
|||
euph_rooms: HashMap::new(),
|
||||
};
|
||||
|
||||
for (name, config) in &config.euph.rooms {
|
||||
if config.autojoin {
|
||||
result.get_or_insert_room(name.clone()).connect();
|
||||
if !config.offline {
|
||||
for (name, config) in &config.euph.rooms {
|
||||
if config.autojoin {
|
||||
result.get_or_insert_room(name.clone()).connect();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue