Verified Commit 3a667c00 authored by fooker's avatar fooker 👽
Browse files

Enable SASL auth

parent 8ff6d149
Loading
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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");