Commit 3a667c00 authored by fooker's avatar fooker 👽

Enable SASL auth

parent 8ff6d149
Pipeline #351 passed with stage
in 14 minutes and 28 seconds
......@@ -138,6 +138,11 @@ 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");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment