]> Pileus Git - ~andy/lamechat/commitdiff
Allow SSL without SASL.
authorAndy Spencer <andy753421@gmail.com>
Thu, 4 Apr 2019 18:42:15 +0000 (18:42 +0000)
committerAndy Spencer <andy753421@gmail.com>
Thu, 4 Apr 2019 19:42:18 +0000 (19:42 +0000)
irc.c

diff --git a/irc.c b/irc.c
index 321d3c681240e921a957beee4d4ae3edfbe9ca85..abb6aa6dca6452f92bafec70751e1ca732c1a1e5 100644 (file)
--- a/irc.c
+++ b/irc.c
@@ -377,7 +377,10 @@ static void irc_run(irc_server_t *srv, int idle, const char *line)
        /* Encryption */
        if (srv->state == IRC_ENCRYPT) {
                net_encrypt(&srv->net, srv->noverify ? NET_NOVERIFY : 0);
-               srv->state = IRC_SEND_SASL;
+               if (srv->auth && srv->pass)
+                       srv->state = IRC_SEND_SASL;
+               else
+                       srv->state = IRC_SEND_USER;
        }
 
        /* SASL authentication */