diff --git a/crates/tiny/config.yml b/crates/tiny/config.yml index 2ef594b6..8e2b9777 100644 --- a/crates/tiny/config.yml +++ b/crates/tiny/config.yml @@ -9,6 +9,9 @@ servers: realname: yourname nicks: [tiny_user] + # Whether to auto-connect to this server on startup. Default is true. + # autoconnect: false + # Server alias to show in the tab line. # alias: OFTC diff --git a/crates/tiny/src/config.rs b/crates/tiny/src/config.rs index b045717b..6dbc403c 100644 --- a/crates/tiny/src/config.rs +++ b/crates/tiny/src/config.rs @@ -59,6 +59,10 @@ pub(crate) struct Server
{ #[serde(default)] pub(crate) pass: Option
, + /// Whether to auto-connect to the server + #[serde(default = "default_true")] + pub(crate) autoconnect: bool, + /// User name to be used in connection registration /// If it is not specified, the first nick will be used instead #[serde(default)] @@ -84,6 +88,10 @@ pub(crate) struct Server
{
pub(crate) sasl_auth: Option