Loading src/spacebot/bot.rs +2 −7 Original line number Diff line number Diff line Loading @@ -138,11 +138,6 @@ impl<M> Bot<M> let connection = IrcClient::new_future(config)?; let PackedIrcClient(connection, connection_future) = reactor.block_on(connection)?; // Enable SASL auth if connection.config().password.is_some() { connection.send_sasl_plain()?; } connection.identify()?; println!("Connected"); Loading Loading @@ -206,10 +201,10 @@ impl<M> Bot<M> server: Some(config.host.to_owned()), port: Some(config.port), use_ssl: Some(config.use_ssl), cert_path: config.cert_path.to_owned(), cert_path: config.server_cert_path.to_owned(), client_cert_path: config.client_cert_path.to_owned(), nickname: Some(config.nickname.to_owned()), username: Some(config.username.to_owned()), password: config.password.to_owned(), channels: Some(self.config.channels()), burst_window_length: Some(config.burst_window), max_messages_in_burst: Some(config.burst_limit), Loading src/spacebot/config.rs +2 −1 Original line number Diff line number Diff line Loading @@ -57,7 +57,8 @@ pub struct ConnectionConfig { pub port: u16, pub use_ssl: bool, pub cert_path: Option<String>, pub server_cert_path: Option<String>, pub client_cert_path: Option<String>, pub nickname: String, pub username: String, Loading Loading
src/spacebot/bot.rs +2 −7 Original line number Diff line number Diff line Loading @@ -138,11 +138,6 @@ impl<M> Bot<M> let connection = IrcClient::new_future(config)?; let PackedIrcClient(connection, connection_future) = reactor.block_on(connection)?; // Enable SASL auth if connection.config().password.is_some() { connection.send_sasl_plain()?; } connection.identify()?; println!("Connected"); Loading Loading @@ -206,10 +201,10 @@ impl<M> Bot<M> server: Some(config.host.to_owned()), port: Some(config.port), use_ssl: Some(config.use_ssl), cert_path: config.cert_path.to_owned(), cert_path: config.server_cert_path.to_owned(), client_cert_path: config.client_cert_path.to_owned(), nickname: Some(config.nickname.to_owned()), username: Some(config.username.to_owned()), password: config.password.to_owned(), channels: Some(self.config.channels()), burst_window_length: Some(config.burst_window), max_messages_in_burst: Some(config.burst_limit), Loading
src/spacebot/config.rs +2 −1 Original line number Diff line number Diff line Loading @@ -57,7 +57,8 @@ pub struct ConnectionConfig { pub port: u16, pub use_ssl: bool, pub cert_path: Option<String>, pub server_cert_path: Option<String>, pub client_cert_path: Option<String>, pub nickname: String, pub username: String, Loading